en:developer:linux_source_install
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
en:developer:linux_source_install [2014/04/13 23:52] – external edit 127.0.0.1 | en:developer:linux_source_install [2017/05/08 01:42] – kjdon | ||
---|---|---|---|
Line 22: | Line 22: | ||
- | You need to install it on the research partition, ELSE IT DOESN' | + | You need to install it on the research partition, ELSE IT DOESN' |
- | < | + | < |
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' | + | For students or developers at the University of Waikato: make sure these are installed in the RESEARCH partition, else it doesn' |
(**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, | The following is separated into multi-lines, | ||
< | < | ||
- | $ ./ | + | $ ./ |
--without-apxs | --without-apxs | ||
- | --with-apr=/ | + | --with-apr=/ |
- | --with-apr-util=/ | + | --with-apr-util=/ |
--with-neon=/ | --with-neon=/ | ||
</ | </ | ||
Line 56: | Line 56: | ||
< | < | ||
make install</ | make install</ | ||
- | Now it's created a folder called ' | + | Now it's created a folder called ' |
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: | ||
- | < | + | < |
For more details, see [[en: | For more details, see [[en: | ||
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/ | ||
+ | * **If you're on Linux 64 bit,** | ||
+ | < | ||
* **Checking out Greenstone 3 source code from subversion (SVN)** | * **Checking out Greenstone 3 source code from subversion (SVN)** | ||
Line 88: | Line 92: | ||
- | Go to /research/<your-username>/ (in the following, Greenstone 3 will be checked out into a folder called greenstone 3). | + | Go to /Scratch/ |
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 /research/<your-username>/ | + | 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/ |
< | < | ||
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 /research/<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/ |
< | < | ||
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 /research/<your-username>/ | + | Go to $GSDLHOME, Greenstone3 home directory (which in the example above is /Scratch/ |
< | < | ||
Press ' | Press ' | ||
Line 225: | Line 229: | ||
In your greenstone3 home folder, $GSDLHOME: | In your greenstone3 home folder, $GSDLHOME: | ||
< | < | ||
- | Then, deploy (as written in the [[http://www.greenstone.org/ | + | Then, deploy (as written in the [[http://files.greenstone.org/ |
< | < | ||
Check that it works, by **starting** tomcat again and going to: | Check that it works, by **starting** tomcat again and going to: | ||
Line 231: | Line 235: | ||
Make sure that the page appears. You can also look at the wsdl file for the gs3 web service that's been exposed: | Make sure that the page appears. You can also look at the wsdl file for the gs3 web service that's been exposed: | ||
< | < | ||
- | You can also deploy other sites, see the [[http://www.greenstone.org/ | + | You can also deploy other sites, see the [[http://files.greenstone.org/ |
Line 365: | Line 369: | ||
< | < | ||
- | mkdir /research/xxx (create a place for your research files if you haven' | + | mkdir /Scratch/xxx (create a place for your research files if you haven' |
- | cd /research/xxx | + | cd /Scratch/xxx |
svn co http:// | svn co http:// | ||
</ | </ | ||
Line 383: | Line 387: | ||
</ | </ | ||
- | Now greenstone is installed in ''/ | + | Now greenstone is installed in ''/ |
==== 2. If you want to use the GLI ==== | ==== 2. If you want to use the GLI ==== | ||
Line 406: | Line 410: | ||
Unpack the tar file: | Unpack the tar file: | ||
< | < | ||
- | cd /research/xxx | + | cd /Scratch/xxx |
tar -xzf apache_2.x.x.tar.gz | tar -xzf apache_2.x.x.tar.gz | ||
</ | </ | ||
Line 413: | Line 417: | ||
< | < | ||
cd apache_2.x.x | cd apache_2.x.x | ||
- | ./configure --prefix=/research/xxx/httpd | + | ./configure --prefix=/Scratch/xxx/httpd |
make | make | ||
make install | make install | ||
</ | </ | ||
- | Now apache is installed in ''/ | + | Now apache is installed in ''/ |
To start and stop apache, type | To start and stop apache, type | ||
< | < | ||
- | /research/ | + | /Scratch/ |
- | /research/ | + | /Scratch/ |
</ | </ | ||
- | To change the port that apache runs on, edit the ''/ | + | To change the port that apache runs on, edit the ''/ |
change the Port or Listen directive to the correct port - '' | change the Port or Listen directive to the correct port - '' | ||
After restarting apache you will then be able to access your apache installation at | After restarting apache you will then be able to access your apache installation at | ||
Line 437: | Line 441: | ||
This is the way I used: | This is the way I used: | ||
< | < | ||
- | cd /research/ | + | cd /Scratch/ |
- | ln -s /research/ | + | ln -s /Scratch/ |
- | ln -s /research/ | + | ln -s /Scratch/ |
- | cp /research/ | + | cp /Scratch/ |
- | cd /research/ | + | cd /Scratch/ |
- | ln -s /research/xxx/gsdl | + | ln -s /Scratch/xxx/gsdl |
</ | </ | ||
Line 448: | Line 452: | ||
Make sure the following are uncommented and set like this: | Make sure the following are uncommented and set like this: | ||
< | < | ||
- | gsdlhome /research/xxx/gsdl | + | gsdlhome /Scratch/xxx/gsdl |
httpprefix /gsdl | httpprefix /gsdl | ||
httpimg / | httpimg / | ||
</ | </ | ||
- | Now you need to edit apaches config file ''/ | + | Now you need to edit apaches config file ''/ |
- | In the ''< | + | In the ''< |
FollowSymlinks' | FollowSymlinks' | ||
Line 485: | Line 489: | ||
installation, | installation, | ||
< | < | ||
- | cd /research/ | + | cd /Scratch/ |
svn update | svn update | ||
make clean | make clean |