How to install LHAPDF6

Instruction is easy to find here: But on „fresh” Linux you need to install some dependencies.

Download LHAPDF archive from page and unpack to any directory. Alternative method is to use wget:

tar xf LHAPDF-6.1.6.tar.gz
cd LHAPDF-6.1.6

Installation is standard: configure, make, make install.

I prefer to not use any special path and install this lib directly to /usr/local/lib. So I didn’t use any prefixes:


After invoking this command I got a message:

checking for Boost headers version >= 1.41.0... no
configure: error: cannot find Boost headers version >= 1.41.0

Boost was missing. To install:

sudo apt-get install libboost1.48-*

When installation process ends, checking if boost is installed:

dpkg -s libboost1.48-all-dev

How to get version of Boost:

dpkg -s libboost1.48-all-dev | grep 'Version'

In my case: Version: 1.48.0-3.

After installing Boost, retry configure LHAPDF:


Succeed. Installation:

sudo make install

How to check if LHAPDF is installed? Try to invoke:

ls /usr/local/lib/

2 myśli nt. „How to install LHAPDF6

  1. Pingback: Instalacja ROOT | Mój skrawek Sieci

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *