CERNLIB INSTALLATION

To install:

1) Install the libraries required by CERNLIB... see PREREQUISITES below.

2) from the top-level CERNLIB source directory:
   cp debian/add-ons/Makefile .

3) Then:

Debian GNU/Linux
----------------
To produce Debian packages:

$ fakeroot debian/rules binary
[wait a couple hours]
$ sudo dpkg -i ../*.deb

Note: you may not want to install the .debs of zftp, pawserv, fatmen, hepdb,
which are a) insecure (send passwords in cleartext) and b) no longer
widely used.

Other Linux, Unix or Mac OS X
-----------------------------

$ make prefix=/usr/local sysconfdir=/etc
[wait a couple hours]
sudo make prefix=/usr/local sysconfdir=/etc install

Note: you may want to delete the binaries of zserv, pawserv from /usr/local/sbin
and the binaries of fat*, hep*, zftp from /usr/local/bin for the reasons
mentioned above.

If you are installing paw, zftp, fatserv, pawserv or zserv, then:
a) make sure you have the following lines in /etc/services:

pawserv         345/tcp                         # Perf Analysis Workbench
pawserv         345/udp                         # Perf Analysis Workbench
zserv           346/tcp                         # Zebra server
zserv           346/udp                         # Zebra server
fatserv         347/tcp                         # Fatmen Server
fatserv         347/udp                         # Fatmen Server

b) if you install pawserv and/or zserv, put something like this in
   /etc/inetd.conf:

zserv   stream  tcp     nowait  root    /usr/local/sbin/zserv	zserv
pawserv stream  tcp     nowait  root    /usr/local/sbin/pawserv	pawserv

PREREQUISITES

- On Debian GNU/Linux, have the following packages and their dependencies
  installed:

  dpatch, patch, mawk (or gawk), xutils (for imake), debhelper, gfortran,
  cfortran, x-dev, libxt-dev, libx11-dev, lesstif2-dev, libblas-dev,
  liblapack-dev, texlive (or some reasonable subset), fakeroot, build-essential

- On RedHat Linux, the following packages and their dependencies should
  suffice (note, not tested)

  make, patch, gawk, XFree86-devel, XFree86-libs, gcc-gfortran, lesstif-devel,
  lesstif, tetex-latex, blas*, lapack*

  * The blas and lapack RPMS may be obtained from RedHat RawHide:
    ftp://ftp.redhat.com/pub/redhat/linux/rawhide

- On Mac OS X, have the developers' tools CD and the following Fink packages
  installed: (see http://fink.sourceforge.net for more info about Fink)

  make (GNU make), xfree86-base (for imake), gfortran, atlas,
  lesstif (or openmotif3) and the related -bin and -shlibs packages,
  tetex (maybe only tetex-base, I haven't investigated fully)

