...
Download and Install DSpace
...
Create
...
the
...
[dspace
...
]
...
directory.
The \The [dspace\] directory is where the running dspace code will reside. Wiki Markup
Code Block |
---|
sudo mkdir /dspace |
Download the Source Release
...
The source release allows you to customize every aspect of DSpace. This step downloads the compressed archive from SourceForge, and unpacks it in your current directory. The dspace-1.x.x-src-release directory is typically referred to as \to as [dspace-src\].
Code Block |
---|
wget http://sourceforge.net/projects/dspace/files/DSpace%20Stable/1.7.2/dspace-1.7.2-src-release.tar.bz2 tar -xvjf dspace-1.7.2-src-release.tar.bz2 |
...
The source release that has been obtained is human readable source code, and must be compiled to machine code for the server to run it. "mvn package" compiles the source code, and "ant" will do all the work necessary to initialize the database with the DSpace schema, and copy all of the compiled machine code to a location where the web server can serve it.
Info |
---|
ant fresh_install will populate the dspace database and \ [dspace\] directory with new information. This will overwrite any existing installation of DSpace that you may have.
|
Code Block |
---|
cd dspace-1.7.2-src-release mvn -U package cd dspace/target/dspace-1.7.2-build.dir sudo ant fresh_install |
Fix Tomcat permissions, and restart the Tomcat server
...
This guide follows the convention where the tomcat user will own all of the files in \files in [dspace\], so we have to change the owner of the files to tomcat6. Restarting tomcat will deploy the dspace webapps that are now ready to be viewed.
Code Block |
---|
sudo chown tomcat6:tomcat6 /dspace -R sudo service tomcat6 restart |
...