wiki:ProtosInstallation

Protos installation

Protos can be installed in 2 steps. First, you need to install an old release of LHAPDF (5.*.* not 6.*.*) and download the PDF sets that you would like to use. Second, you must proceed to the Protos installation.

LHAPDF 5.9.1 installation

  • Untar the tarball with the command: tar xzf lhapdf-5.9.1.tar.gz. Normally a lhapdf-5.9.1 folder must be created on your disk.
  • Create somewhere in your disk a folder where the final production of the LHAPDF building will be put: mkdir lhapdf. The absolute path of lhapdf will be named in the following <absolute path of lhapdf>.
  • Enter the folder lhapdf-5.9.1: cd lhapdf-5.9.1
  • Configure the package installation: ./configure --disable-pyext --enable-shared=yes --enable-static=yes --prefix=<absolute path of lhapdf>
  • Launch the building and cross the fingers :-): make then make install
  • Configure the environment variables:
    • export LHAPDF=<absolute path of lhpadf>
    • export PATH=$PATH:$LHAPDF/bin
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LHAPDF/lib
  • Install PDF sets:
    • Create a devoted folder~: mkdir $LHAPDF/share/lhapdf/PDFsets
    • This is a example of CTEQ6L1: cd $LHAPDF/share/lhapdf/PDFsets; lhapdf-getdata cteq6ll.LHpdf.
    • The full list of available of PDF sets can be found here: lhapdf-getdata --list

Protos 2.2 installation

  • Untar the tarball: tar xzf Protos22_patchEric.tar.gz. Normally a Protos22 folder must be created on your disk.
  • Enter the Protos folder and apply the patch: cd Protos22.
  • Edit the file extlib.mk and replace the line by EXTLIB = -L<absolute path of lhapdf>/lib -lLHAPDF
  • Launch make: make
  • Congratulations! Protos 2.2 is ready to be used.
Last modified 3 years ago Last modified on 08/31/17 15:26:55

Attachments (3)