configure error: Could not link against boost_system

前端 未结 10 1587
星月不相逢
星月不相逢 2021-02-05 05:52

I\'m trying to install a package (soccer simulator 2d) on Debian. When I go to the directory and run ./configure, I get the following:

reza@debian:~         


        
相关标签:
10条回答
  • 2021-02-05 06:18

    Installing

    • libboost-system-dev
    • libboost-filesystem-dev
    • libboost-chrono-dev
    • libboost-program-options-dev
    • libboost-test-dev
    • libboost-thread-dev
    • libboost-iostreams-dev

    Fixed the issue. The report of ./configure is:

    checking whether the Boost::System library is available... yes
    checking for exit in -lboost_system... yes
    checking whether the Boost::Filesystem library is available... yes
    checking for exit in -lboost_filesystem... yes
    checking whether the Boost::IOStreams library is available... yes
    checking for exit in -lboost_iostreams... yes
    checking whether the Boost::Program_Options library is available... yes
    checking for exit in -lboost_program_options... yes
    checking whether the Boost::Regex library is available... yes
    checking for exit in -lboost_regex... yes
    checking whether the Boost::Thread library is available... yes
    checking for exit in -lboost_thread... yes
    checking whether the Boost::Unit_Test_Framework library is available... yes
    
    0 讨论(0)
  • 2021-02-05 06:20

    In my case I was missing some necessary parts of boost. Try executing on Ubuntu/Debian:

    sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-iostreams-dev

    0 讨论(0)
  • 2021-02-05 06:21

    On a Debian based 32-bit machine, the following command fixed this error for me:

    ./configure --with-boost-libdir=/usr/lib/i386-linux-gnu
    

    On a Debian based 64-bit machine, try the following command:

    ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu
    

    More info can be found here.

    0 讨论(0)
  • 2021-02-05 06:21

    Just to let potential viewers know, use ./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf on armhf devices. Thanks to @Hadi for the inspiration.

    0 讨论(0)
提交回复
热议问题