Go to this website:
http://cernlib.web.cern.ch/cernlib/version.html
Download the latest version, which is a bunch of tar.gz files. Do not unzip them. Put the files in /cernlib/code. Run the script provided by cern to unzip and make all the files.
Here is the last script that I used:
#!/bin/sh # Unpack the source files and set up the build structure, e.g. # /tmp/cernlib/2003/src (and lib) list=`ls src_*.gz` for ffile in $list do gunzip -c $ffile | tar xf - done # Establish the environment variables for the build procedures # Depending on the system, other directories may need to be added to the PATH # e.g. for the build tools and alternative compilers. CERN_LEVEL=`gunzip -c Imakefile.tar.gz | tar tf - | awk -F/ '{print $1}'` CERN=`pwd` CERN_ROOT=$CERN/$CERN_LEVEL CVSCOSRC=$CERN/$CERN_LEVEL/src PATH=$CERN_ROOT/bin:$PATH export CERN export CERN_LEVEL export CERN_ROOT export CVSCOSRC export PATH # Create the build directory structure cd $CERN_ROOT mkdir -p build bin lib build/log # Create the top level Makefile with imake cd $CERN_ROOT/build $CVSCOSRC/config/imake_boot # Install kuipc and the scripts (cernlib, paw and gxint) in $CERN_ROOT/bin gmake bin/kuipc > log/kuipc 2>&1 gmake scripts/Makefile cd scripts gmake install.bin > ../log/scripts 2>&1 # Install the libraries cd $CERN_ROOT/build gmake > log/make.`date +%m%d` 2>&1