Skip to content

A minimal linux version of the old cernlib containing almost all cernlib routines.

Notifications You must be signed in to change notification settings

mpaolone/nanocernlib

 
 

Repository files navigation

nanocernlib

A collection of commonly used cernlib routines packaged with cmake to easily build on modern systems.

This version is a fork of the original. I have added the following disclaimer: Made by Michael Paolone, based on code by Sylvester Joosten, based on an old MAC build of cernlib in 2015, which of course is based on the 2006 cernlib package developed by cern. This code is use at your own risk and falls under any licensing of the original cernlib package: see https://cernlib.web.cern.ch/cernlib/

This build was tested with MacOSX 10.15.3 (Catalina) with gcc 10.1.0 installed from brew

Installation

Note: the following instructions are given assuming you are using bash as your shell.

Choose a working prefix

export PREFIX="/path/to/your/prefix"; mkdir -p $PREFIX

Install all necessary dependencies

Ensure you have cmake, 'perl' and gfortran installed

Run installation script

perl install.pl

If everything worked correctly, you should have these three files (unbroken soft links) in your /usr/local/lib directory:

libgeant321.a libmathlib.a libmclibs.a libpacklib.a

Note: One could make dynamic library links with the following command: g++-10 -fpic -dynamiclib -Wl,-all_load,-undefined,dynamic_lookup libnanocernlib_geant321.a -o libgeant321.dylib -lgfortran for each respective library, but as of this writing, I haven't tested that the shared libraries work.

About

A minimal linux version of the old cernlib containing almost all cernlib routines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 95.7%
  • C++ 1.9%
  • C 1.0%
  • Assembly 0.7%
  • Pawn 0.3%
  • CMake 0.2%
  • Other 0.2%