Skip to content

Installing PROPOSAL on a Linux kernel 4.11

Jean-Marco Alameddine edited this page Apr 24, 2023 · 3 revisions

Installing PROPOSAL on a Linux kernel < 4.11

As described in issue #186 , there are problems when installing PROPOSAL via pip and/or conan on Linux kernels older than 4.11. This guide provides a possible step-by-step solution to install PROPOSAL on these systems.

Preparations

  • Make sure that the gcc version is compatible with C++14 (check that gcc --version should be 5 or later)

Preparation conan

  • Make sure that conan is installed (check with conan). If not, do
    pip install -Iv conan==1.59.0
  • Reset conan default profile. This is necessary especially if a different compiler has been loaded. This can be done with
    conan profile new default --detect --force
    conan profile update settings.compiler.libcxx=libstdc++11 default

Note that this needs to be done after we have enabled the compiler that we are going to use to build PROPOSAL. Otherwise, conan will use wrong compilation settings.

Installing PROPOSAL

    git clone https://github.com/tudo-astroparticlephysics/PROPOSAL.git
    cd PROPOSAL && mkdir build && cd build   
  • Now we run conan, but we have to tell conan explicitly to use boost/1.72.0:
    conan install .. -o with_python=True --require-override=boost/1.72.0
  • Now we can build PROPOSAL. We can do this either with installing proposal to the current build directory with
    conan build ..

or we can tell conan to install proposal to a specific directory with

    conan build .. -pf path/to/install/proposal
  • Note that now, you need to make sure that the installed PROPOSAL python package is in your PYTHONPATH so that it will be found when importing.