Error on boost compiling

This is the error:

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)                                                                                                                       
  dep/boost/CMakeLists.txt:43 (find_package)   

Somebody to help me? Thank’s Pit

You’ll need a package that provides boost_system and likely other parts of Boost. On openSUSE iirc that’s in boost-devel.


You might be able to take a Linux archive from Boost 1.89.0 and point to it with -DBOOST_ROOT=, but I’m thinking it’d be easier if your distro provides Boost development packages instead.

1 Like