gcc |编译来源麻烦

时间:2015-02-19 11:36:24

标签: c++ gcc boost configure

我尝试编译简单的工具,并得到错误。请帮我解决一下:)

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
....
....
checking for main in -lboost_filesystem... no
configure: error: in `/root/tbb2mbox/mbox2eml-0.1.2':
configure: error: boost_filesystem is required

但是已经安装了boost,boost-devel

boost-1.33.1-16.el5_9
boost-devel-1.33.1-16.el5_9

ldconfig -p | grep boost_filesystem
        libboost_filesystem.so.2 (libc6,x86-64) => /usr/lib64/libboost_filesystem.so.2

标题

rpm -ql boost-devel | grep filesystem

/usr/include/boost/filesystem
/usr/include/boost/filesystem/config.hpp
/usr/include/boost/filesystem/convenience.hpp
/usr/include/boost/filesystem/exception.hpp
/usr/include/boost/filesystem/fstream.hpp
/usr/include/boost/filesystem/operations.hpp
/usr/include/boost/filesystem/path.hpp
/usr/lib64/libboost_filesystem.a
/usr/lib64/libboost_filesystem.so

我能为成功做些什么? ))

1 个答案:

答案 0 :(得分:0)

configure执行测试时,通常只会将结果报告给终端。但是,它还将其执行的大部分工作记录到config.log

因此,当遇到这样的错误时,最好的办法是搜索config.log以找到失败的编译。这将为您提供有关确切失败的更多信息,这可以让您解决潜在的问题。