CERN

CERNLIB – CERN Program Library .

A large collection of programs – libraries and individual modules, most of which are developed in CERN and are focused on the needs of physical research laboratories.
The most famous applications based on CERNLIB are PAW and GEANT 3.21.
The LIT farm installed CERNLIB / 2006 software, which is part of the standard Scientific Linux software
CERNLIB includes libraries and software packages for high-energy physics applications:

1. analysis and presentation of data;
2. simulation of nuclear physics processes, wiring tracks for electronic installations;
3. numerical algorithms;
4. maintenance of programs;
5. file transfer; Network servers.

List of some libraries and packages:
KERNLIB – library of basic (basic) subroutines and functions;
MATHLIB – mathematical subroutines, including random number generators;
PACKLIB – library of program packages HEPDB, HBOOK, ZEBRA, etc .;
GRAFLIBS – graphic libraries HIGZ, HPLOT, etc .;
PAWLIB – PAW library, including COMIS, PAW and SIGMA;
Monte Carlo libraries – Monte Carlo generators, usually existing as stand-alone libraries;
Modules – modules, such as PAW, FATMEN;
GEANT – a program for modeling the passage of elementary particles through a substance using Monte Carlo methods.

The CERNLIB library is located in the following directories:

/ usr/lib64/cernlib/2006-g77 / – for g77
/ usr /lib64/cernlib/2006/ – for gfortran

Required environment variables for working with CERNLIB on the farm.

CERN =/usr/lib64/cernlib
CERN_LEVEL=2006-g77  or
CERN_LEVEL=2006

PATH = $PATH:$CERN/$CERN_LEVEL/bin

To link your programs with libraries from CERNLIB, we recommend using the cernlib command.

For example:
lxpub01:~ > cernlib mathlib
Will output a string with a list of required libraries for the program using functions from mathlib:
-L/usr/lib64/cernlib/2006/lib -Wl,-static -lmathlib -lpacklib -lkernlib -Wl,-dy -llapack -lm -lnsl -lcrypt -ldl

The development and support of CERNLIB (written in g77) was terminated in favor of ROOT and GEANT4 packages (written in C ++)

Further support for CERNLIB is provided by individual enthusiasts. For example, the 64-bit version of CERNLIB for modern systems and compilers (gcc4 / gfortran) can be found on the DESY website.