Table of Contents

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.

Installing Greenstone2

How do I compile Greenstone from a source or SVN distribution?

For simple instructions, see Compiling Greenstone.

For more detailed instructions and platform specific notes, see Compiling Greenstone Advanced.

For Greenstone 2's SVN urls see Greenstone SVN. To install the source once you've downloaded it from SVN, follow the steps in Compiling the Source for Linux and Installing Greenstone 2 from SVN source on Windows.

For a step by step walkthrough for compilation on Linux, see Installing Greenstone 2 from source for Beginners.

Some helpful related information:

What is the difference between Greenstone's local library and web library?

Firstly, the local library is only available if you're running Greenstone under Windows. It's not yet available on Unix.

The major difference between the two is that the local library contains it's own built-in webserver. The web library however, requires an external webserver like Apache or Microsoft IIS. This makes the local library much easier to install and configure than the web library.

For this reason, it's recommended that Windows users install the local library unless they're sure that they need the web library. Even if you think you might need the web library, try installing the local library first. You can always uninstall it later and install the web library if you then decide you need it.

A situation where the web library may be preferable is if you plan to serve your Greenstone collections as a full-time service on the web. In this case you'll probably want the added stability that running the web library in conjunction with an external webserver can provide.

Please note that the local library is quite capable of serving Greenstone collections over a local area network or the web (despite its rather misleading name).

How do I use Greenstone's web library with IIS?

Note: we don't use IIS, test Greenstone with it, or recommend it (Apache has a much better security record, and of course it's open source).

After installing the web library version of Greenstone, configure IIS by following these steps:

  
cacls "C:\Program Files\Greenstone\etc\error.txt" /P Everyone:F
  cacls "C:\Program Files\Greenstone\etc\key.db" /P Everyone:F
  cacls "C:\Program Files\Greenstone\etc\users.db" /P Everyone:F

If error.txt not there, add and empty file called error.txt and change permissions as described.

You should now be able to access your Greenstone library at http://localhost/gsdl/cgi-bin/library.exe, or, for versions since 2.81, at http://localhost/gsdl/cgi-bin/library.cgi

Then edit the values like the following: (this assumes installation into C:\greenstone2)

 gsdlhome    c:\greenstone2
 httpprefix  /gsdl
 httpweb     /gsdl/web
 gwcgi       /gsdl/cgi-bin/library.cgi

How do I install the Greenstone Librarian Interface as an applet?

Install the GLI applet by following the instructions on this page.

How do I enable the remote building facility?

Enable the remote building facility by following the instructions on this page. This is similar to installing the GLI as an applet.

How do I upgrade Greenstone 2.x on Linux?

The following instructions were contributed to the Greenstone mailing list by Julian Fox: Upgrading Greenstone 2.x on Linux

I have a binary release of Greenstone installed. Now I want to recompile it. What should I do?

It is assumed you are on Linux.

> cd gsdl-2.80-unix
> ./setupLinux.bin
> cd $GSDLHOME

See if there is a folder called indexers. If there is none (as is the case with Greenstone 2.80, but it is intended to be included in future Greenstone binary releases), then you need to get it. To get it from SVN (and into the $GSDLHOME folder where you now are):

> svn co http://svn.greenstone.org/indexers/trunk indexers

If you don't know what subversion/SVN is or don't have it installed, then you need to get the indexers folder by downloading the entire Source Distribution and compiling that, see Source_distribution.

> ./configure
> make all
> make install

All going well, this would have compiled it. If you had any difficulties during compilation, see Source_distribution.

> source setup.bash
> cd gli
> ./makegli.sh
> ./makejar.sh

(The above would have compiled GLI and then the last line created the executable jar file from the compiled files.)

You can run GLI with:

> ./gli.sh

Unfortunately there's a non-intrusive bug in Greenstone 2.80's GLI when installed from the source included in the binary distribution. If upon running GLI, you see the following on your xterm:

Running the Greenstone Librarian Interface...
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:60: Engine "clearlooks" is unsupported, ignoring
Version: 2.80

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at javax.swing.plaf.synth.SynthContext.getPainter(SynthContext.java:181)
        ....

You can correct the problem above, by

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

with:

UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

where the WebServerName and WebServerPort are what you specified when you set up your web server.

If you want to know more about this, see Setting up an Apache Web Server for Greenstone 2 Walkthrough

I have installed the linux binary on FreeBSD, but cgi-bin/library is not working.

If you try to run library from the cgi-bin directory and you get a message like ELF binary type "0" not known. ./library: Exec format error. Binary file not executable.

It may be that you need to enable compatibility with linux binaries.

linux_enable="YES"

brandelf -t Linux /home/gsdl/cgi-bin/library (putting the path to your library program)

How do I get my Greenstone server accessible from the Internet?

You need a computer that is permanently connected to the internet and has a webserver program running. We recommend Apache, or you can use IIS or another webserver if necessary. If your organization does not have this kind of computer, you can pay a web hosting company to host Greenstone for you. See below. However you will need to find one that will install Greenstone for you (or allow you to install it yourself) and allow CGI executables to run. Some hosting companies (particuarly cheap ones) do not provide these services.

Once you have access to this computer you need to install the "Web Library" version of Greenstone on it. Next, configure your web server to make Greenstone accessible – instructions for Apache are provided by the Greenstone installer (2.80 and earlier) or see here, and instructions for IIS are available here.

Lastly, copy your collections into this Greenstone installation and check that everything is now accessible from the web.

How do I put my Greenstone Digital Library on the web using a hosting company?

Answer contributed to the mailing list by Diego Spano.

How easy it is to install Greenstone (GS) will depend a lot on your internet hosting company. They might install Greenstone for you if you ask (it is very strange, but who knows…), or they might give you SSH access to a computer and let you install it yourself (this is the best option).

To install GS on a web server you need terminal access to your hosting company through ssh. When you want to acquire a domain, the company will offer you a varity of options but you have to take in account that you need a dedicated server (aka Virtual private server). A dedicated server allows you to manage what to install and have the freedom of configuring it as you want because you have root access.

Some topics to get GS on a web server, assuming that you have a dedicated server in your hosting company:

ps -aux | grep httpd" or "ps -aux | grep apache2

Troubleshooting