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 [2016/11/17 22:42] – anupama | ||
---|---|---|---|
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 60: | Line 60: | ||
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 88: | Line 88: | ||
- | Go to /research/< | + | Go to /Scratch/< |
Line 97: | Line 97: | ||
[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/< | + | 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 126: | ||
- | Update your .profile file, containing your settings, to export JAVA_HOME and update the PATH to point to your Java installation. Go to /research/< | + | 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 166: | ||
- | Go to $GSDLHOME, Greenstone3 home directory (which in the example above is /research/< | + | Go to $GSDLHOME, Greenstone3 home directory (which in the example above is /Scratch/< |
< | < | ||
Press ' | Press ' | ||
Line 365: | Line 365: | ||
< | < | ||
- | 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 383: | ||
</ | </ | ||
- | 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 406: | ||
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 413: | ||
< | < | ||
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 437: | ||
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 448: | ||
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 485: | ||
installation, | installation, | ||
< | < | ||
- | cd /research/ | + | cd /Scratch/ |
svn update | svn update | ||
make clean | make clean |