This page is in the 'old' namespace, and was imported from our previous wiki. We recommend checking for more up-to-date information using the search box.

Compiling Greenstone3 on Ubuntu

Note: You need java from the sun website, not from the <tt>sun-java6-jdk</tt> package.

Download a jdk binary installer from the sun website to a location like <tt>~/jdk-6u5-linux-i586.bin</tt>. Then install java:

chmod +x ~/jdk-6u5-linux-i586.bin
cd /usr/local
sudo ~/jdk-6u5-linux-i586.bin
export JAVA_HOME=/usr/local/jdk1.6.0_05
export PATH=$JAVA_HOME/bin:$PATH

Install some required packages

sudo apt-get update
sudo apt-get install build-essential subversion ant autoconf
sudo apt-get upgrade

Checkout and install Greenstone3

svn co http://svn.greenstone.org/greenstone3/trunk greenstone3
cd greenstone3
ant
gedit build.properties
  (edit as needed, changing port number for tomcat, etc)
ant prepare install