Reference documentation: [http://dspace.org/technology/system-docs/install.html]
* The following step-by-step howto has not been tested thoroughly. If you find any problems, please refer the reference documentation above.
* Most of the installation steps are performed in shell prompt (bash).
* Please help to make corrections. (English is not my primary language)
* This line will be deleted if I finish writing this howto and testing the DSpace system. I write this howto while I am installing DSpace on my Mandriva system. If you subscribe to DSpace-Tech mailing list (email@example.com), questions, comments, corrections, etc. to the list will be appreciated.
It is assumed that
* Linux Mandriva 2007 is already installed. See: [http://www.howtoforge.com/perfect_setup_mandriva_2007]
* The system has been connected to RPM repository (eg. via FTP, by typing at prompt: urpmi.addmedia ..).
* You are familiar with bash sell and text editor vi.
Install Java Package in Mandriva
In Mandriva 2007.0, you can try Java SE Development Kit from Sun Microsystems, or a 'relatively' compatible Java package in Mandriva 2007.0. Below, the step-by-step howto for both are described. If found problems with the first, just try the second.
Install Java Package Provided by Mandriva 2007.0 Free Edition
Type the following:
that results in the following output:
Press '1' that will result in the next choices:
Press '3' that will present the following choices:
Press 'Y', and it will start installing Java package.
Download and Install Sun Java SE Development Kit
As an alternative of using Java package that is bundled with Mandriva 2007.0 Free Edition, you can download the Java SE Development Kit (JDK) from [http://java.sun.com/javase/downloads/index.jsp]. As stated in the reference documentation, you do not need Java EE (Enterprise Edition). You do not need Java SE with NetBeans, either; just the minimal JDK. As of this writing, the current version is Java SE Development Kit 5.0 Update 9, but in this howto we use JDK 5.0 Update 7, the RPM version (jdk-1_5_0_07-linux-i586-rpm.bin).
After putting the JDK file in the current directory, do the followings:
The License Agreement will be presented to you. Just press space-bar until you are asked to agree the license terms. Type 'yes' and press Enter. The RPM file will be created, eg. jdk-1_5_0_07-linux-i586.rpm. Then, type the following and then press Enter:
If you want to know the files that have been installed on your system, type:
At [http://www.linuxquestions.org/questions/showthread.php?t=214559], someone said that "it's worth installing Sun's J2EE enterprise java package when using tomcat. Just the normal java JRE will not work with Tomcat, because it uses J2EE libraries (jars)". He is right that 'normal java JRE will not work', but I think JDK is enough, so I decided to use Java package above (Java SE SDK). However, if you find problems with Sun JDK above, try to install Java EE SDK instead. It can be downloaded from [http://java.sun.com/javaee/downloads/index.jsp], eg. java_ee_sdk-5-linux.bin.
To install Sun Java EE SDK, follow these steps:
and then follow the instructions.
Choose the Java Package
If you installed both Java packages above, you can switch from one package to another by setting environment variable JAVA_HOME. Just edit /etc/tomcat5/tomcat5.conf after Tomcat5 installation below. If you follow carefully all the steps above, then to make Tomcat use GNU Java, put this line into tomcat5.conf:
Alternatively, to make Tomcat use Sun Java, put this line into tomcat5.conf:
and replace all java-related program in /usr/bin with the ones from Sun Java. You can do this by moving these files: jar, jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi, javaws, from /usr/bin/ to another directory, and put symbolic links to Sun Java programs in /usr/bin.
Install Other Prerequisites Available as Mandriva RPMs
Type the followings:
After the last line (urpmi tomcat5), the console will show the following lines:
Just press 'Y' and you will see installation of Tomcat 5.5 begins.
DSpace will run as a web application at Tomcat, so we have to install tomcat5-webapps.
and then press 'Y' and Enter after the following message:
Press 'Y' and Enter.
Configure the Environment
To ensure that Tomcat has enough memory to run DSpace and uses UTF-8 as its default file encoding for international character support, uncomment and edit 'JAVA_OPTS' environment variable in Tomcat startup script /etc/tomcat5/tomcat5.conf:
and then write the following line:
Please note that the option: '-Xmx512M -Xms64M' will only be understood by Sun Java but not by GNU Java. Please see GNU Java documentation to get the same goal.
To alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8 correctly, add a configuration option to the <Connector> element in /etc/tomcat5/server.xml.
You will see the following lines in that file:
Just add 'URIEncoding="UTF-8"' before slash:
Summary of the Environment
I will write DSpace installation steps here. Visit this page later. However, DSpace installation described in the the reference documentation is clear enough (see the first line of this howto).