Posted in Linux, Mathematics, Physics, Science, tagged CalcHEP, Code, Compilation, HEP, Install, LHC, Linux, Mathematics, Numerics, Physics, Simulation, Software, technology, Tools, Ubuntu on April 26, 2013|
2 Comments »
In order to install CalcHEP, one needs to download the code and to compile it.
The code can be found at http://theory.sinp.msu.ru/~pukhov/calchep.html, as usual it is recommended to download the current version, unless a major pre-requisite problem is in sight.
It is useful to install some packages before start compiling CalcHEP
$ sudo apt-get install cernlib gfortran xlibx11-dev
Then, go to the folder where CalcHEP was downloaded and decompress it,
$ tar -xzf calchep_3.4.cpc.tgz
Now, move to the calchep_3.4.cpc folder and compile the code
$ cd calchep.3.4.cpc
If the code has compiled without errors, it is enough to start working. However, usually it is recommended to do a couple of extra things.
Creating a Working folder
The default work directory is
, but in general it is a good idea to have an independent “work folder”, in order for doing so, in the CalcHEP directory there is a script to create that folder… it is called
mkUsrDir and admits one argument (the path to the folder you want to create)
$ ./mkUsrDir ~/Documents/WorkCalcHEP
Once created the working directory, you can move there and call the CalcHEP console (assuming the directory created above I would do the following)
$ cd ~/Documents/WorkCalcHEP
and you get this:
Now, you are ready to start working!
Read Full Post »