I will follow installation process manual written in this
dependencies
1. java jdk-6 [ from snaptic ]
2. Apache Maven 2.0.8 or later (Java build tool) read how to install here.
3. Apache Ant 1.6.2 or later (Java build tool)
4. Relational Database:
installation
1. create linux user for dspace
2. Download the latest DSpace release and unpack it
3. Database Setup
Postgres :
4. Edit [dspace-source]/dspace/config/dspace.cfg
dspace.dir -- must be set to the [dspace] (installation) directory.
dspace.url -- complete URL of this server's DSpace home page.
dspace.hostname -- fully-qualified domain name of web server.
dspace.name -- "Proper" name of your server, e.g. "My Digital Library".
db.password -- the database password you entered in the previous step.
mail.server -- fully-qualified domain name of your outgoing mail server.
mail.from.address -- the "From:" address to put on email sent by DSpace.
feedback.recipient -- mailbox for feedback mail.
mail.admin -- mailbox for DSpace site administrator.
alert.recipient -- mailbox for server errors/alerts (not essential but very useful!)
registration.notify -- mailbox for emails when new users register (optional)
NOTE: You can interpolate the value of one configuration variable in the value of another one. For example, to set feedback.recipient to the same value as mail.admin, the line would look like:
See the dspace.cfg file for examples.
5. สร้างที่ไว้ลง dspace
(Assuming the dspace UNIX username.)
6. As the dspace UNIX user, generate the DSpace installation package in the [dspace-source]/dspace/target/dspace-[version].dir/
directory:
Note: without any extra arguments, the DSpace installation package is initialized for PostgreSQL.
7. As the dspace UNIX user, initialize the DSpace database and install DSpace to [dspace] :
ถ้า ทำข้อ 6 ได้ มันจะมี folder target โผล่มาให้
Note: to see a complete list of build targets, run
The most likely thing to go wrong here is the database connection. See the common problems section.
problem :
When I launch any command with ant for the OpenJFX compiler, I get the following error message: "No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher
solution :
8. Tell your Tomcat/Jetty/Resin installation where to find your DSpace web application(s). As an example, in the <host></host> section of your [tomcat]/conf/server.xml you could add lines similar to the following (but replace [dspace] with your installation location) :
Alternatively, you could copy only the DSpace Web application(s) you wish to use from [dspace]/webapps to the appropriate directory in your Tomcat/Jetty/Resin installation. For example:
9. Create an initial administrator account:
In order to set up some communities and collections, you'll need to login as your DSpace Administrator (which you created with create-administrator above) and access the administration UI in either the JSP or XML user interface.
ปล. ถ้า mvn package ครั้งที่สอง แล้ว fail ให้ไป remove $HOME/.m2/repository ออกไปแล้ว รัน mvn package ใหม่
dependencies
1. java jdk-6 [ from snaptic ]
2. Apache Maven 2.0.8 or later (Java build tool) read how to install here.
3. Apache Ant 1.6.2 or later (Java build tool)
$ apt-get install ant
4. Relational Database:
$ apt-get install postgresql
installation
1. create linux user for dspace
$ sudo useradd -m dspace
2. Download the latest DSpace release and unpack it
3. Database Setup
Postgres :
- A PostgreSQL 8.1-404 jdbc3 driver is configure as part of the default DSpace build. You no longer need to copy any postgres jars to get postgres installed.
- Create a dspace database, owned by the dspace PostgreSQL user:
- Enter a password for the DSpace database. (This isn't the same as the dspace user's UNIX password.)
$ createuser -d -A -P dspace
$ sudo su dspace
$ createdb -E UNICODE dspace
4. Edit [dspace-source]/dspace/config/dspace.cfg
dspace.dir -- must be set to the [dspace] (installation) directory.
dspace.url -- complete URL of this server's DSpace home page.
dspace.hostname -- fully-qualified domain name of web server.
dspace.name -- "Proper" name of your server, e.g. "My Digital Library".
db.password -- the database password you entered in the previous step.
mail.server -- fully-qualified domain name of your outgoing mail server.
mail.from.address -- the "From:" address to put on email sent by DSpace.
feedback.recipient -- mailbox for feedback mail.
mail.admin -- mailbox for DSpace site administrator.
alert.recipient -- mailbox for server errors/alerts (not essential but very useful!)
registration.notify -- mailbox for emails when new users register (optional)
NOTE: You can interpolate the value of one configuration variable in the value of another one. For example, to set feedback.recipient to the same value as mail.admin, the line would look like:
feedback.recipient = ${mail.admin}
See the dspace.cfg file for examples.
5. สร้างที่ไว้ลง dspace
$ mkdir [dspace]
$ chown dspace [dspace]
(Assuming the dspace UNIX username.)
6. As the dspace UNIX user, generate the DSpace installation package in the [dspace-source]/dspace/target/dspace-[version].dir/
directory:
$ cd [dspace-source]/dspace/
$ mvn package
Note: without any extra arguments, the DSpace installation package is initialized for PostgreSQL.
7. As the dspace UNIX user, initialize the DSpace database and install DSpace to [dspace] :
$ cd [dspace-source]/dspace/target/dspace-[version].dir/ant fresh_install
ถ้า ทำข้อ 6 ได้ มันจะมี folder target โผล่มาให้
Note: to see a complete list of build targets, run
$ ant help
The most likely thing to go wrong here is the database connection. See the common problems section.
problem :
When I launch any command with ant for the OpenJFX compiler, I get the following error message: "No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher
solution :
$ apt-get install ant-optional
8. Tell your Tomcat/Jetty/Resin installation where to find your DSpace web application(s). As an example, in the <host></host> section of your [tomcat]/conf/server.xml you could add lines similar to the following (but replace [dspace] with your installation location) :
Alternatively, you could copy only the DSpace Web application(s) you wish to use from [dspace]/webapps to the appropriate directory in your Tomcat/Jetty/Resin installation. For example:
$ cp -r [dspace]/webapps/jspui [tomcat]/webapps
$ cp -r [dspace]/webapps/oai [tomcat]/webapps
9. Create an initial administrator account:
[dspace]/bin/create-administrator
- Now the moment of truth! Start up (or restart) Tomcat/Jetty/Resin. Visit the base URL(s) of your server, depending on which DSpace web applications you want to use. You should see the DSpace home page. Congratulations!
Base URLs of DSpace Web Applications:- JSP User Interface - (e.g.) http://dspace.myu.edu:8080/jspui
- XML User Interface (aka. Manakin) - (e.g.) http://dspace.myu.edu:8080/xmlui
- OAI-PMH Interface - (e.g.) http://dspace.myu.edu:8080/oai/request?verb=identify (Should return an XML-based response)
In order to set up some communities and collections, you'll need to login as your DSpace Administrator (which you created with create-administrator above) and access the administration UI in either the JSP or XML user interface.
ปล. ถ้า mvn package ครั้งที่สอง แล้ว fail ให้ไป remove $HOME/.m2/repository ออกไปแล้ว รัน mvn package ใหม่
ความคิดเห็น