Install Prerequisites

You will first need to build, test and install the following prerequisites:

Perl 5.6.1 or higher (with suidperl) [REQUIRED]

The gold server and clients are written in Perl. Perl 5.6.1 or higher is required. The perl installation must include suidperl for proper client authentication. Use 'perl -v' to see what level of Perl is installed and 'suidperl -v' to see if suidperl is installed. Perl is available at: <http://www.perl.com/>

[root]# cd /usr/local/src

[root]# wget http://www.cpan.org/src/stable.tar.gz

[root]# gzip -cd stable.tar.gz | tar xvf -

[root]# cd perl-5.8.5

[root]# sh Configure -Dd_dosuid -de

[root]# make

[root]# make test

[root]# make install

[root]# (cd /usr/include && /usr/local/bin/h2ph *.h sys/*.h)

Or if you are using rpms, you will need the perl and the perl-suidperl rpms appropriate for your architecture and operating system:

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/perl-5.8.0-88.3.i386.rpm

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/perl-suidperl-5.8.0-88.3.i386.rpm

[root]# rpm -Uvh perl-5.8.0-88.3.i386.rpm perl-suidperl-5.8.0-88.3.i386.rpm

libxml2 2.4.25 or higher [REQUIRED]

LibXML2 is needed by the XML::LibXML perl module to communicate via the SSSRMAP message format. LibXML2 is available at: <http://www.xmlsoft.org/>

[root]# cd /usr/local/src

[root]# wget —passive-ftp ftp://xmlsoft.org/libxml2-2.6.17.tar.gz

[root]# gzip -cd libxml2-2.6.17.tar.gz | tar xvf -

[root]# cd libxml2-2.6.17

[root]# ./configure

[root]# make

[root]# make install

PostgreSQL database 7.2 or higher [REQUIRED]

Gold makes use of a database for transactions and data persistence. Two databases have been tested for use with Gold thus far: PostgreSQL and SQLite. Postgres is an external database that must be separately installed configured and started, while SQLite is an embedded database bundled with the Gold source code. If you intend to use the PostgreSQL database, you will need to install it. PostgreSQL is available at: <http://www.postgresql.org/>

[root]# cd /usr/local/src

[root]# wget ftp://ftp3.us.postgresql.org/pub/postgresql/source/v7.4.5/postgresql-7.4.5.tar.gz

[root]# gzip -cd postgresql-7.4.5.tar.gz | tar xvf -

[root]# cd postgresql-7.4.5

[root]# ./configure

[root]# make

[root]# make install

[root]# adduser postgres

[root]# mkdir /usr/local/pgsql/data

[root]# chown postgres /usr/local/pgsql/data

[root]# touch /var/log/pgsql

[root]# chown postgres /var/log/pgsql

Or if you are using rpms, you will need the postgresql, postgresql-libs, postgresql-server, and postgresql-devel rpms appropriate for your architecture and operating system:

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/postgresql-7.3.2-3.i386.rpm

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/postgresql-libs-7.3.2-3.i386.rpm

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/postgresql-server-7.3.2-3.i386.rpm

[root]# wget ftp://rpmfind.speakeasy.net/linux/redhat/updates/9/en/os/i386/postgresql-devel-7.3.2-3.i386.rpm

[root]# rpm -Uvh postgresql-7.3.2-3.i386.rpm postgresql-libs-7.3.2-3.i386.rpm postgresql-server-7.3.2-3.i386.rpm postgresql-devel-7.3.2-3.i386.rpm

Gnu readline 2.0 or higher [OPTIONAL]

The interactive control program (goldsh) can support command-line-editing capabilities if readline support is enabled. Most recent linux distributions come with the appropriate readline support. Gnu readline is available at: <http://www.gnu.org/>

[root]# cd /usr/local/src

[root]# wget http://ftp.gnu.org/gnu/readline/readline-5.0.tar.gz

[root]# gzip -cd readline-5.0.tar.gz | tar xvf -

[root]# cd readline-5.0

[root]# ./configure

[root]# make

[root]# make install

Java 2 SDK 1.4 or higher [OPTIONAL]

Gold provides a web based gui so that managers, users and administrators can interact with the accounting and allocation system. This alpha gui is still under active development and has not been widely tested, however, it is made available at this stage in the hopes that it may be useful to you as is, and so that we can receive feedback, improvements, etc. The web interface utilizes Java Server Pages and needs to have a servlet container installed. A low-level java client also exists but most clients are written in Perl. Java 2 SDK is available at: <http://java.sun.com/j2se>

[root]# cd /usr/local/src

Download j2sdk-1_4_2_01-linux-i586.bin ( or j2sdk-1_4_2_01-linux-i586-rpm.bin ) from http://java.sun.com/j2se/1.4/download.html

[root]# chmod +x j2sdk-1_4_2_01-linux-i586.bin

[root]# cd /usr/local

[root]# src/j2sdk-1_4_2_01-linux-i586.bin

Apache Tomcat Server 4 or higher [OPTIONAL]

Gold provides a web based gui so that managers, users and administrators can interact with the accounting and allocation system. The web interface utilizes Java Server Pages and needs to have a servlet container installed. Tomcat is available at: <http://jakarta.apache.org/tomcat/>

[root]# cd /usr/local/src

wget ftp://ftp.tux.org/pub/net/apache/dist/jakarta/tomcat-4/v4.1.29/bin/jakarta-tomcat-4.1.29.tar.gz

[root]# cd /usr/local

[root]# gzip -cd src/jakarta-tomcat-4.1.29.tar.gz | tar xvf -