CentOS does not recognize compiled boost library

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have built and installed boost using the following steps:



# Boostrap and install
JOBS=`grep -c ^processor /proc/cpuinfo`
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
tar xf boost_1_67_0.tar.bz2
cd boost_1_63_0
./bootstrap.sh
./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage
./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install
sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf"
sudo ldconfig


Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure. I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows:



Searching for boost libs and headers... (cached) 
Found boost libs: mason_packages/.link/lib
Found boost headers: mason_packages/.link/include
Checking for C++ header file boost/version.hpp... yes
Checking for Boost version >= 1.61... yes
Found boost lib version...
Checking for C++ library boost_system... no
Could not find required header or shared library for boost system
Checking for C++ library boost_filesystem... no
Could not find required header or shared library for boost filesystem
Checking for C++ library boost_regex... yes
Checking for C++ library boost_program_options... yes
ValueError: invalid literal for int() with base 10: '':
File "/root/src/mapnik/SConstruct", line 1600:
boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]


(Build steps courtesy of keisan)



Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I have built and installed boost using the following steps:



    # Boostrap and install
    JOBS=`grep -c ^processor /proc/cpuinfo`
    wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
    tar xf boost_1_67_0.tar.bz2
    cd boost_1_63_0
    ./bootstrap.sh
    ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage
    ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install
    sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf"
    sudo ldconfig


    Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure. I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows:



    Searching for boost libs and headers... (cached) 
    Found boost libs: mason_packages/.link/lib
    Found boost headers: mason_packages/.link/include
    Checking for C++ header file boost/version.hpp... yes
    Checking for Boost version >= 1.61... yes
    Found boost lib version...
    Checking for C++ library boost_system... no
    Could not find required header or shared library for boost system
    Checking for C++ library boost_filesystem... no
    Could not find required header or shared library for boost filesystem
    Checking for C++ library boost_regex... yes
    Checking for C++ library boost_program_options... yes
    ValueError: invalid literal for int() with base 10: '':
    File "/root/src/mapnik/SConstruct", line 1600:
    boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]


    (Build steps courtesy of keisan)



    Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have built and installed boost using the following steps:



      # Boostrap and install
      JOBS=`grep -c ^processor /proc/cpuinfo`
      wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
      tar xf boost_1_67_0.tar.bz2
      cd boost_1_63_0
      ./bootstrap.sh
      ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage
      ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install
      sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf"
      sudo ldconfig


      Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure. I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows:



      Searching for boost libs and headers... (cached) 
      Found boost libs: mason_packages/.link/lib
      Found boost headers: mason_packages/.link/include
      Checking for C++ header file boost/version.hpp... yes
      Checking for Boost version >= 1.61... yes
      Found boost lib version...
      Checking for C++ library boost_system... no
      Could not find required header or shared library for boost system
      Checking for C++ library boost_filesystem... no
      Could not find required header or shared library for boost filesystem
      Checking for C++ library boost_regex... yes
      Checking for C++ library boost_program_options... yes
      ValueError: invalid literal for int() with base 10: '':
      File "/root/src/mapnik/SConstruct", line 1600:
      boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]


      (Build steps courtesy of keisan)



      Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software?







      share|improve this question













      I have built and installed boost using the following steps:



      # Boostrap and install
      JOBS=`grep -c ^processor /proc/cpuinfo`
      wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2
      tar xf boost_1_67_0.tar.bz2
      cd boost_1_63_0
      ./bootstrap.sh
      ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage
      ./b2 -d1 -j$JOBS --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install
      sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf"
      sudo ldconfig


      Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure. I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows:



      Searching for boost libs and headers... (cached) 
      Found boost libs: mason_packages/.link/lib
      Found boost headers: mason_packages/.link/include
      Checking for C++ header file boost/version.hpp... yes
      Checking for Boost version >= 1.61... yes
      Found boost lib version...
      Checking for C++ library boost_system... no
      Could not find required header or shared library for boost system
      Checking for C++ library boost_filesystem... no
      Could not find required header or shared library for boost filesystem
      Checking for C++ library boost_regex... yes
      Checking for C++ library boost_program_options... yes
      ValueError: invalid literal for int() with base 10: '':
      File "/root/src/mapnik/SConstruct", line 1600:
      boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]


      (Build steps courtesy of keisan)



      Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software?









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 31 at 6:21
























      asked May 30 at 12:05









      JasonStack

      17410




      17410

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446892%2fcentos-does-not-recognize-compiled-boost-library%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446892%2fcentos-does-not-recognize-compiled-boost-library%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)