csiro-hydroinformatics / wila

A C++ framework to couple optimisation tools and simulation models
Other
2 stars 4 forks source link

Could not find a package configuration file provided by "boost_system" #15

Open jmp75 opened 1 year ago

jmp75 commented 1 year ago

Context: trying to compile on EASI-hub cmake installed from source because

cloud-based image on AWS. the apt repository shows a libboost package (no sub-packages like in Debian)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
  Could not find a package configuration file provided by "boost_system"
  (requested version 1.74.0) with any of the following names:

    boost_systemConfig.cmake
    boost_system-config.cmake

  Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set
  "boost_system_DIR" to a directory containing one of the above files.  If
  "boost_system" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
  /home/jovyan/build/usr/local/share/cmake-3.27/Modules/FindBoost.cmake:594 (find_package)
  CMakeLists.txt:60 (find_package)
jmp75 commented 1 year ago

If I compare the directory "/usr/lib/x86_64-linux-gnu/cmake/boost_system-1.74.0" on my machine compared to the AWS image, probably Ubuntui, indeed there is only a subset of the subdrectory in the image. How to I install the modules if not available from APT?