我尝试编译简单工具,但出现错误。帮我解决一下:)
./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
我能做什么才能成功? ))
当configure
执行测试时,它通常只将结果报告给终端。但是,它还会将它所做的大部分工作记录到 config.log
。
因此,当遇到此类错误时,最好的办法是搜索 config.log
以查找失败的编译。这将为您提供有关失败原因的更多信息,这应该可以让您解决根本问题。
我是一名优秀的程序员,十分优秀!