HEP Packages for Scientific Linux
Compared to Mattias' RPMs, we have upgraded to newer versions of Geant (8.0), CLHEP (220.127.116.11), 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:
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:
(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-18.104.22.168xxxx.src.rpm
and at the end
rpm -ivh /usr/src/redhat/RPMS/i386/clhep-22.214.171.124xxxx.i386.rpm
To create RPM packages, see
- RPM Guide from Fedora
- a very comprehensive RPM creation course from Guru Labs
- Mandriva RPM HowTo - Advanced