Please note the below points before going ahead with the installation of NewGenLib on Linux
We have tested NewGenLib installation on Red Hat Enterprise Edition 4.0 and Fedora Core 6.
Install Postgresql 8.0 or above. NewGenLib works well on Postgresql 8.0 and is also tested on Postgresql 8.1. Download the binaries from http://www.postgresql.org/ftp/binary/v8.0.15/linux/rpms/
Make sure that you also install postgres contrib modules while installing postgresql because NewGenLib uses TSearch2
Install J2SDK1.4.2. This is the exact version of Java SDK required by NewGenLib. Download the binaries from http://java.sun.com/j2se/1.4.2/download.html
NewGenLib works both on 32-bit and 64-bit systems.
Check that your postgres service is running.
Hardware: Pentium 4 or equivalent, 1GB RAM and 40GB Hard disk
Software: Linux
Hardware: Pentium 3 or equivalent, 128MB RAM, and 1 GB of min hard disk
Software: Windows 98/ME/2000prof/2000adv server/XP home/XP Prof/2003/Red hat Linux 8.0/9.0/10/Enterprise edition, Fedora, Suse, Debian
Open the terminal
Login as postgres by using this command without the quotes “su – postgres”
Create a database named newgenlib using this command without the quotes “createdb newgenlib”
Create a user named newgenlib using this command without the quotes “createuser -P newgenlib”. The system will prompt you to enter the password, enter the password. The system will prompt you with a series of questions. Enter 'yes' for all the questions. Advanced Postgresql database administrators may make sure that 'newgenlib' user has all the right to 'newgenlib' database only
Connect to 'newgenlib' database using this command without the quotes “psql newgenlib”. While connected make sure
Install dbsize from contrib modules using this command without the quotes “\i /usr/share/pgsql/contrib/dbsize.sql” (please check the location of your dbsize.sql and execute the command accordingly). Also this step needs to be executed if you are using Postgresql 8.0 and not 8.1
Install tsearch2 from contrib modules using this command without the quotes “\i /usr/share/pgsql/contrib/tsearch2.sql” (please check the location of your tsearch2.sql and execute the command accordingly).
Install tables, functions, indexes and all other configuration required by NewGenLib. For this should have already downloaded backupinplain.sql from NewGenLib related downloads from sourceforge.net. Execute this command without the quotes “\i /usr/ backupinplain.sql”. Please note that you must be connected to newgenlib as you were connected from steps 5 through 8. If you are already connected then just execute the command. This step will create all the NewGenLib related database tables.
Download the jboss-3.2.1_tomcat-4.1.24.zip from NewGenLib related downloads from sourceforge.net. Extract the contents of this zip file into /usr directory. You must now see a directory named jboss-3.2.1_tomcat-4.1.24 in the /usr directory.
Download the NewGenLibFilesLinux.zip from NewGenLib related downloads from sourceforge.net. Extract the contents of this zip file into /usr directory.
Edit postgresql.conf file in /var/lib/pgsql/data directory. Uncomment the line listen='localhost' and port='5432' and restart postgres service.
In the jboss-3.2.1_tomcat-4.1.24/server/default/deploy directory you will find a file named 'postgres-ds.xml' file. Edit the file using you favorite editor. Make changes of the user name and password in this file in accordance with user name and password created in step 4.
Download newgenlib.ear from NewGenLib downloadable files in sourceforge.net website. Copy the downloaded file into jboss-3.2.1_tomcat-4.1.24/server/default/deploy directory.