comphep:install
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| comphep:install [01/01/2017 12:12] – [CompHEP-4.1. Installation.] admin | comphep:install [31/10/2026 12:16] (current) – Update for CompHEP 4.6.2 dudko | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== CompHEP-4.1. Installation. | + | ====== CompHEP |
| - | **New:** //For Mac users the installation instruction | + | This is a short guide for CompHEP 4.6. The complete instructions are in the [[https:// |
| - | Please send all you remarks to A.Kryukov by e-mail: [[kryukov@theory.sinp.msu.ru]] | + | ===== Requirements ===== |
| - | ===== Preliminary remarks | + | * Linux. CompHEP also builds on macOS (see [[new-mac|macOS notes]]) |
| + | * gcc, g++, gfortran, GNU make, X11 development libraries (libX11, libXext), perl. | ||
| + | * Optional: LHAPDF 6 with yaml-cpp, ROOT, libxml2 (for HepML), pdflatex (for diagram export). | ||
| - | In this document we suppose that Linux is used. Thus, if you have another OS on the computer, please adjust this installation procedure according requirements of your OS. | + | Debian/ |
| + | apt install gcc g++ gfortran make libx11-dev libxext-dev perl | ||
| + | </ | ||
| + | Fedora/ | ||
| + | dnf install gcc gcc-c++ gcc-gfortran make libX11-devel perl | ||
| + | </ | ||
| - | Below, we use the following notations: | + | ===== Getting |
| - | XXXX - CompHEP version number; | + | Take an archive from the [[https:// |
| - | | + | git clone https:// |
| - | | + | </ |
| - | comphep-XXXX-linux.tgz - distributive tar-file with binaries; | + | |
| - | See section 4 for the installation | + | ===== Building |
| - | ===== Compilation of the package from the source distributive. ===== | + | < |
| + | ./configure --optimise -mp | ||
| + | make | ||
| + | </ | ||
| - | - Untar gzip-tar distributive archive: < | + | |
| - | tar xzvf comphep-XXXX.tgz | + | * LHAPDF 6, ROOT and libxml2 are detected automatically if '' |
| - | </ | + | |
| - | - Pass to the comphep-XXXX directory: < | + | |
| - | cd comphep-XXXXX | + | When you update the sources, rebuild from a clean tree: '' |
| + | |||
| + | ===== Setting up a user directory ===== | ||
| + | |||
| + | < | ||
| + | make setup WDIR=$HOME/ | ||
| + | cd $HOME/ | ||
| </ | </ | ||
| - | - Launch configure script:< | ||
| - | ./configure | ||
| - | </ | ||
| - | - ./configure generates several files with compiler/ | ||
| - | CC = gcc | ||
| - | CFLAGS = -Wall -DNUM_DOUBLE -DCOMPHEP | ||
| - | CLIBS = -Llib -lX11 -lm | ||
| - | F77 = gfortran | ||
| - | F77FLAGS = | ||
| - | F77LIBS = -lgfortran -lgcc | ||
| - | RANLIB = ranlib | ||
| - | </ | ||
| - | - Compile CompHEP:< | ||
| - | make | ||
| - | </ | ||
| - | All CompHEP binaries are ready to use. But for convenient | ||
| - | work with CompHEP we recommend to create a user directory, which will contain necessary scripts, model files, and directories for results of your calculation. | ||
| - | // | ||
| - | ===== Installation of a user directory | + | ===== Testing |
| - | In order to create a user working directory execute: | + | |
| < | < | ||
| - | make setup WDIR=path_to_user_work_directory | + | make test # fast: numerical protocol and unit tests |
| - | </ | + | make test-full |
| - | * WDIR is a path to a directory where you want to have all CompHEP start-up scripts. Default value is < | + | </ |
| - | * Do not use ' | + | |
| - | After that go to WDIR and enjoy CompHEP! | + | ===== Spack and Docker ===== |
| - | ===== Additional services are provided. ===== | + | Spack:< |
| + | git clone https:// | ||
| + | spack repo add comphep/ | ||
| + | spack install comphep +lhapdf | ||
| + | </ | ||
| - | - Clean up CompHEP | + | Docker, from the source directory:< |
| - | make clean | + | docker build -f docker/ |
| + | docker run -it comphep-build | ||
| </ | </ | ||
| - | - make tar gzip archive of CompHEP:< | ||
| - | make dist | ||
| - | </ | ||
| - | ===== Some incompatibilities | + | ===== Parton distributions ===== |
| + | |||
| + | To use LHAPDF 6, install at least one PDF set, for example '' | ||
| + | |||
| + | ===== Incompatibilities | ||
| - Models of CompHEP version 4.4 and later have different notations for leptons: < | - Models of CompHEP version 4.4 and later have different notations for leptons: < | ||
| Line 70: | Line 72: | ||
| </ | </ | ||
| - In debug mode the environment variable COMPHEP defined in the startup scripts like ~/.cshrc can interfere with the run time environment defined in the script ' | - In debug mode the environment variable COMPHEP defined in the startup scripts like ~/.cshrc can interfere with the run time environment defined in the script ' | ||
| + | |||
comphep/install.txt · Last modified: by dudko
