Menu

#4 configure: error: Linking to libboost_regex FAILED.  Edit

None
closed
None
2018-12-16
2018-12-11
Anonymous
No

I am running Arch Linux.
When configuring, I get the following error:

 $ ./configure                       
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking boost/regex.hpp usability... no
checking boost/regex.hpp presence... no
checking for boost/regex.hpp... no
configure: Checking linking with libboost_regex... 
configure: error: in `/home/maddin/user_programs/mgrep-1.1.2':
configure: error: Linking to libboost_regex FAILED.
See `config.log' for more details

config.log is attached.

The package boost-libs is installed on my system.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2018-12-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -37,3 +37,5 @@
     ~~~
    
     config.log is attached.
    +
    +The package boost-libs is installed on my system.
    
    • Milestone: -->
     
  • Peter Istvan Lenard

    Hi,

    Based on the attached config.log, the header file regex.hpp was not found:

    configure:2962: g++ -o conftest -W -Wall -ansi -pedantic -O2   conftest.cpp  -lboost_regex >&5
    conftest.cpp:20:10: fatal error: boost/regex.hpp: No such file or directory
     #include <boost/regex.hpp>
              ^~~~~~~~~~~~~~~~~
    compilation terminated.
    

    Could you please check if this file is present on your system? (For me, it resides at /usr/include/boost/regex.hpp.)

    It can happen that the boost library was installed without regex support (ie. the regular expression handling part of boost library is missing). In this case Boost.Regex has to be installed as well.

    Can you check the above?

    Regards,

    Istvan

     
  • Anonymous

    Anonymous - 2018-12-15
    • assigned_to: Peter Istvan Lenard
     
  • Anonymous

    Anonymous - 2018-12-16

    Yes, that was the problem. The file is part of the boost-package in Arch. I could find that in this article. Thank you very much. It works now :)

     
  • Peter Istvan Lenard

    Yep, this can be tricky sometimes. Great that it works, now. You're welcome, closing the ticket then.

     
  • Peter Istvan Lenard

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB