HEP Packages for Scientific Linux

I (Sergio) and Mark have prepared RPM format packages of a few HEP software packages. The packages have been originally derived from those made by Mattias Ellert for NorduGrid:

Compared to Mattias' RPMs, we have upgraded to newer versions of Geant (8.0), CLHEP (, Root(5.10). I have added postun ldconfig, and /etc/profile scripts for environment variables. Instead I have not yet updated to cernlib-2005, and I'm presently wondering about using the Fedora Extras sources as he does, since they are derived from Debian, that has dropped the non-GPL components like Fluka and PYTHIA.

If you are running Scientific Linux 4.1 or 4.3, you can install them simply by using YUM, otherwise you will have to recompile them. They should recompile fine on Fedora Core 4 and 5;

First rebuild the cernlib:

 nice rpmbuild --rebuild cernlib-2004.xxxx.src.rpm

Please note that you must not be root for it to recompile properly. For root the rm command is aliased to rm -i, so that the build will stop asking whether you want to delete files... I have not found a workaround for this.
If everything goes well, at the end you will see a line like:

 Wrote: /usr/src/redhat/RPMS/i386/cernlib-2004-3.SL4.WITS.i386.rpm

then do

 rpm -ivh /usr/src/redhat/RPMS/i386/cernlib-2004-3.SL4.WITS.i386.rpm

and source the profile script so that the environment ($CERN, $CERN_LEVEL...) is updated:

  . /etc/profile.d/cernlib.sh

(yes, there is a space between . and /).

Now you can build ROOT, which depends on cernlib-devel to build:

 nice rpmbuild --rebuild root-xxxx.src.rpm

You must build and install CLHEP before building Geant4, so

 nice rpmbuild --rebuild clhep-

and at the end

 rpm -ivh /usr/src/redhat/RPMS/i386/clhep-

To create RPM packages, see

Related Links