Building libPRepS

libPRepS must be built on the same machine that the database server is on. That is because the library contains routines that are called from the database. libPRepS also must be built on any machine that PRepS will be built on, even if the database is on a different machine. This is because libPRepS contains several routines used by the PRepS user interface.

Building libPRepS is pretty straight forward, assuming you are familiar with building stuff on Linux. For the simplest case:

% ./configure
% make
% su # you need to be root for the rest
# make install
# vi /etc/ld.so.conf # add new libdir
# ldconfig
      

The configure scipt takes several arguments. This is not a complete list, but just an overview of the more common arguements that may need to be used. For a complete list, type ./configure --help.

--prefix

Specify the base directory where libPRepS will be installed.

--with-pgsqldir=dir

Specify the base path to the PostgreSQL installation. For example, if PostgreSQL (or the PostgreSQL libraries if this is a "client only" machine) is installed in /opt/app/postgres, configure will not be able to find the libpq library and header files. In this case, you will need to specify --with-pgsqldir=/opt/app/postgres.

--disable-server-scripts

Do not install the scripts that are used to create and update PRepS databases. You may not want these installed on all of your user's machines.

--with-sendmaildir=dir

Specify the directory where sendmail is installed. Use this option if sendmil is installed on your system, but configure cannot find it.

--with-texdir=texdir

Specify the directory where TeX is installed. Use this option if TeX is installed on your system, but configure cannot find it.

--with-dvipsdir=dvipsdir

Specify the directory where dvips is installed. Use this option if dvips is installed on your system, but configure cannot find it.