我试着编译简单的工具,但得到了错误。请帮我解决它:)
./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_9libs
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我能为成功做些什么?))
发布于 2015-02-19 22:25:51
当configure执行测试时,它通常只向终端报告结果。但是,它也会将它所做的大部分工作记录到config.log。
因此,当遇到这样的错误时,最好的办法就是在config.log中搜索,找出编译失败的地方。这将为您提供有关发生故障的确切原因的更多信息,从而帮助您修复潜在问题。
https://stackoverflow.com/questions/28605348
复制相似问题