User Tools

Site Tools


en:developer:linux_source_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:developer:linux_source_install [2016/11/17 22:43] anupamaen:developer:linux_source_install [2016/11/17 22:48] anupama
Line 22: Line 22:
  
  
-You need to install it on the research partition, ELSE IT DOESN'T WORK! Go to /Scratch and create folder <your-username>, if this folder isn't already there. Then work from there. +You need to install it on the research partition, ELSE IT DOESN'T WORK! Go to /Scratch and create folder your-username, if this folder isn't already there. Then work from there. 
-<code>$ /Scratch/<your-username></code>+<code>$ /Scratch/your-username</code>
  
  
Line 31: Line 31:
  
  
-For students or developers at the University of Waikato: make sure these are installed in the RESEARCH partition, else it doesn't work! I'm assuming below that these will be installed in /Scratch/<your-username>/sources+For students or developers at the University of Waikato: make sure these are installed in the RESEARCH partition, else it doesn't work! I'm assuming below that these will be installed in /Scratch/your-username/sources
 (**sources** is just a folder where I put the unzipped source code for Greenstone 3 related programs). (**sources** is just a folder where I put the unzipped source code for Greenstone 3 related programs).
 For everyone else, replace this with your FULL PATH to where the apr, apr-util and subversion will be installed. For everyone else, replace this with your FULL PATH to where the apr, apr-util and subversion will be installed.
Line 47: Line 47:
 The following is separated into multi-lines, but type them all on the same line in the x-term separated by spaces. Make sure you use the paths to subversion, apr and apr-util that are appropriate for your situation: The following is separated into multi-lines, but type them all on the same line in the x-term separated by spaces. Make sure you use the paths to subversion, apr and apr-util that are appropriate for your situation:
 <code> <code>
-$ ./configure    --prefix=/Scratch/<your-username>/subversion+$ ./configure    --prefix=/Scratch/your-username/subversion
 --without-apxs --without-apxs
---with-apr=/Scratch/<your-username>/apr/bin/apr-1-config +--with-apr=/Scratch/your-username/apr/bin/apr-1-config 
---with-apr-util=/Scratch/<your-username>/apu/bin/apu-1-config+--with-apr-util=/Scratch/your-username/apu/bin/apu-1-config
 --with-neon=/usr/ --with-neon=/usr/
 </code> </code>
Line 56: Line 56:
 <code>make <code>make
 make install</code> make install</code>
-Now it's created a folder called 'subversion' in <your-username>, because that's what --prefix told it to do above. +Now it's created a folder called 'subversion' in your-username, because that's what --prefix told it to do above. 
  
  
 Next, add the path to the bin directory to the paths already exported: Next, add the path to the bin directory to the paths already exported:
-<code>$ export PATH=/Scratch/<your-username>/subversion/bin:$PATH</code>+<code>$ export PATH=/Scratch/your-username/subversion/bin:$PATH</code>
 For more details, see [[en:developer:install_svn|Install SVN]] For more details, see [[en:developer:install_svn|Install SVN]]
  
Line 81: Line 81:
  
 ===== Checking out and installing Greenstone 3 and GLI ===== ===== Checking out and installing Greenstone 3 and GLI =====
 +
 +* Make sure $JAVA_HOME and $ANT_HOME are set, and that $JAVA_HOME/bin, $ANT_HOME/bin and your svn/bin are on the PATH.
 +* **If you're on Linux 64 bit,**
 +<code>export CFLAGS=-fPIC $CFLAGS</code>
  
   * **Checking out Greenstone 3 source code from subversion (SVN)**   * **Checking out Greenstone 3 source code from subversion (SVN)**
Line 97: Line 101:
 [co stands for checkout, which will checkout code from SVN] [co stands for checkout, which will checkout code from SVN]
  
-Whenever you need to update with the latest source code from the SVN repository, cd to the $GSDL3HOME directory (your Greenstone installation directory, for example /Scratch/<your-username>/greenstone3) and type:+Whenever you need to update with the latest source code from the SVN repository, cd to the $GSDL3HOME directory (your Greenstone installation directory, for example /Scratch/your-username/greenstone3) and type:
 <code>$ svn update</code> <code>$ svn update</code>
  
Line 126: Line 130:
  
  
-Update your .profile file, containing your settings, to export JAVA_HOME and update the PATH to point to your Java installation. Go to /Scratch/<your-username>, then either use emacs (or some other text editor) to make the changes to the .profile file by launching it as:+Update your .profile file, containing your settings, to export JAVA_HOME and update the PATH to point to your Java installation. Go to /Scratch/your-username, then either use emacs (or some other text editor) to make the changes to the .profile file by launching it as:
 <code>$ emacs ~/.profile</code> <code>$ emacs ~/.profile</code>
 Find out where your Java installation is: Find out where your Java installation is:
Line 166: Line 170:
  
  
-Go to $GSDLHOME, Greenstone3 home directory (which in the example above is /Scratch/<your-username>/greenstone3):+Go to $GSDLHOME, Greenstone3 home directory (which in the example above is /Scratch/your-username/greenstone3):
 <code>$ ant prepare</code> <code>$ ant prepare</code>
 Press 'y' to accept port 8080 if nothing has been deployed there already, which should be the case. Else see further below on changing port number [[#Changing the port number where tomcat is installed]]. Press 'y' to accept port 8080 if nothing has been deployed there already, which should be the case. Else see further below on changing port number [[#Changing the port number where tomcat is installed]].