Reference documentation: \ [http://dspace.org/technology/system-docs/install.html\] Wiki Markup
Notes:
* 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 (dspace-tech@lists.sourceforge.net), questions, comments, corrections, etc. to the list will be appreciated.unmigrated-wiki-markup
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.
Panel | ||||||
---|---|---|---|---|---|---|
Contents
|
...
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). Wiki Markup
After putting the JDK file in the current directory, do the followings:
...
Code Block |
---|
rpm \-ql jdk-1.5.0_07-fcs #depends on the JDK version; see the message #depends on the JDK version; see the message after the command: rpm \-ivh .. |
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. Wiki Markup
To install Sun Java EE SDK, follow these steps:
...
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.
Code Block |
---|
cd /usr/bin mv jar /another/directory/ mv jarsigner /another/directory/ mv java /another/directory/ .. and so on. ln \-s /usr/java/jdk1.5.0_07/bin/jar ln \-s /usr/java/jdk1.5.0_07/bin/jarsigner ln \-s /usr/java/jdk1.5.0_07/bin/java .. and so on. |
Install Other Prerequisites Available as Mandriva RPMs
...
Code Block |
---|
To satisfy dependencies, the following packages are going to be installed: axis-1.2.1-2.2.1mdv2007.0.i586 bcel-5.1-6.1mdv2007.0.i586 jakarta-commons-beanutils-1.7.0-4.2mdv2007.0.i586 jakarta-commons-collections-3.2-1.1mdv2007.0.i586 jakarta-commons-daemon-1.0.1-4.1mdv2007.0.i586 jakarta-commons-dbcp-1.2.1-5.1mdv2007.0.i586 jakarta-commons-digester-1.7-4.1mdv2007.0.i586 jakarta-commons-discovery-0.3-2.1mdv2007.0.i586 jakarta-commons-el-1.0-6.2mdv2007.0.i586 jakarta-commons-fileupload-1.0-5.1mdv2007.0.i586 jakarta-commons-httpclient-3.0.1-1mdv2007.0.i586 jakarta-commons-launcher-1.1-1.1mdv2007.0.i586 jakarta-commons-logging-1.1-3.2mdv2007.0.i586 jakarta-commons-modeler-1.1-7.1mdv2007.0.i586 jakarta-commons-pool-1.3-2.1mdv2007.0.i586 log4j-1.2.13-2.1mdv2007.0.i586 mx4j-3.0.1-4.1mdv2007.0.i586 regexp-1.4-1.2mdv2007.0.i586 tomcat5-5.5.17-3.1.2mdv2007.0.i586 tomcat5-common-lib-5.5.17-3.1.2mdv2007.0.i586 tomcat5-jasper-5.5.17-3.1.2mdv2007.0.i586 tomcat5-jsp-2.0-api-5.5.17-3.1.2mdv2007.0.i586 tomcat5-server-lib-5.5.17-3.1.2mdv2007.0.i586 tomcat5-servlet-2.4-api-5.5.17-3.1.2mdv2007.0.i586 wsdl4j-1.5.2-3.1mdv2007.0.i586 Proceed with the installation of the 25 packages? (36 MB) (Y/n) |
...
Code Block |
---|
To satisfy dependencies, the following packages are going to be installed: jakarta-taglibs-standard-1.1.2-2mdv2007.0.i586 tomcat5-webapps-5.5.17-3.1.2mdv2007.0.i586 Proceed with the installation of the 2 packages? (9 MB) (Y/n) |
...
Code Block |
---|
urpmi tomcat5-admin To satisfy dependencies, the following packages are going to be installed: jakarta-commons-validator-1.3.0-1.1mdv2007.0.i586 jakarta-oro-2.0.8-2.3mdv2007.0.i586 rhino-1.6-0.r2.2.1mdv2007.0.i586 struts-1.2.9-3mdv2007.0.i586 tomcat5-admin-webapps-5.5.17-3.1.2mdv2007.0.i586 Proceed with the installation of the 5 packages? (13 MB) (Y/n) |
...
Code Block |
---|
<Connector port="Threads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false"redirectPort="8443"acceptCount="100" connectionTimeout="20000"disableUploadTimeout="true"/> |
...
Code Block |
---|
<Connector port="8080"maxHttpHeaderSize="8192"maxThreads="150"minSpareThreads="25"maxSpareThreads="75" enableLookups="false"redirectPort="8443"acceptCount="100" connectionTimeout="20000"disableUploadTimeout="true"URIEncoding="UTF-8"/> |
...
Code Block |
---|
\[tomcat\] /usr/share/tomcat5 CATALINA_BASE: /usr/share/tomcat5 CATALINA_HOME: /usr/share/tomcat5 CATALINA_TMPDIR: /usr/share/tomcat5/temp JAVA_HOME: /usr/lib/jvm/java /# or JAVA_HOME: /usr/java/jdk |
...