greenstone.org greenstone wiki greenstone trac planet greenstone

Compiling Greenstone2 on Ubuntu

From GreenstoneWiki

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

Download a jdk binary installer from the sun website to a location like ~/jdk-6u5-linux-i586.bin. 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 upgrade
sudo apt-get install build-essential subversion gettext

Checkout and install Greenstone. Installing to /usr/local in this example. (Note that the "XML Parser" package causes problems unless you compile common-src separately as shown below.)

cd /usr/local
svn co http://svn.greenstone.org/gsdl/trunk gsdl

cd gsdl
./configure

cd common-src
make
make install
cd ..

./configure
make
make install