TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
135 stars 71 forks source link

Installing nrgljubljana_interface in TRIQS docker: issue with boost #925

Closed tayral closed 9 months ago

tayral commented 9 months ago

Description

Hello, I would like to install nrgljubljana_interface inside a TRIQS docker. Everything works smoothly until I run the cmake command

Steps to Reproduce

  1. Install TRIQS docker
  2. Clone nrgljubljana_interface from github (https://triqs.github.io/nrgljubljana_interface/latest/install.html=
  3. Do cmake step: cmake ../nrgljubljana_interface.src/
    
    -- The C compiler identification is GNU 12.3.0
    -- The CXX compiler identification is GNU 12.3.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/gcc-12 - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/g++-12 - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found Cpp2PyConfig.cmake with version 2.0.0, hash = dbef4e4f86daec3ff9c9022a0ec75468e62f9e36, root = /usr
    -- Found itertools-config.cmake with version 1.2.0, hash = ca4cd2efa1222bcb63c5a8ce61145974ff0f5818, root = /usr
    -- Found mpi-config.cmake with version 1.2.0, hash = cebe77b965a5c31abcfe9c5f45381dddf8389ec3, root = /usr
    -- Found h5-config.cmake with version 1.2.0, hash = 206d0114783b3bfb0d3d4c7bd87dbf636abde957, root = /usr
    -- Found OpenMP_CXX: -fopenmp (found version "4.5")
    -- Found OpenMP: TRUE (found version "4.5") found components: CXX
    -- Found nda-config.cmake with version 1.2.0, hash = 63ecbbc213dd092ec6d240e1077666dcf19553f3, root = /usr
    -- Found cppdlr-config.cmake with version 1.0.0, hash = 62e327525d838538467281885c837be8b5ade957, root = /usr
    -- Found TRIQSConfig.cmake with version 3.2.0, hash = 3144cecc10d3a1cd602b47326857ac64240adb22, root = /usr
    -- nrgljubljana_interface version : 3.2.0
    -- nrgljubljana_interface Git hash: 1ab5032c8edf8305c40ff0fb4916358dc3426108
    -- No install prefix given (or invalid). Defaulting to TRIQS_ROOT
    -- -------- CMAKE_INSTALL_PREFIX: /usr --------
    -- -------- BUILD-TYPE: Release --------
    -- -------- MPI detection -------------
    -- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version "3.1")
    -- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1")
    -- Found MPI: TRUE (found version "3.1")
    -- MPI_FOUND: TRUE VERSION:
    -- MPI_CXX_COMPILER: /usr/bin/mpicxx
    -- MPIEXEC: /usr/bin/mpiexec
    -- MPIEXEC_EXECUTABLE: /usr/bin/mpiexec
    -- MPIEXEC_NUMPROC_FLAG: -n
    -- MPIEXEC_PREFLAGS: --oversubscribe
    -- MPIEXEC_POSTFLAGS:
    -- Dependency Cpp2Py was already resolved.
    --  =============== Configuring Dependency GTest ===============
    -- Found Git: /usr/bin/git (found version "2.34.1")
    -- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    --  =============== End GTest Configuration ===============
    -- NRGLJUBLJANA version : 2020.9
    -- NRGLJUBLJANA Git hash: 1ab5032c8edf8305c40ff0fb4916358dc3426108
    -- -------- CMAKE_INSTALL_PREFIX: /usr --------
    -- -------- BUILD-TYPE: Release --------
    -- Found OpenMP_C: -fopenmp (found version "4.5")
    -- Found OpenMP: TRUE (found version "4.5")
    CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find Boost (missing: serialization) (found suitable version
    "1.74.0", minimum required is "1.53")
    Call Stack (most recent call first):
    /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    /usr/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args)
    nrgljubljana/CMakeLists.txt:155 (find_package)

-- Configuring incomplete, errors occurred!


i.e there is an issue with the Boost version.
Do you have any idea how I can fix this?
Thanks!
Wentzell commented 9 months ago

Moved to https://github.com/TRIQS/nrgljubljana_interface/issues/5