gpt4 book ai didi

c++ - 海合会 |源码编译麻烦

转载 作者:太空宇宙 更新时间:2023-11-04 13:38:43 30 4
gpt4 key购买 nike

我尝试编译简单工具,但出现错误。帮我解决一下:)

./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 以查找失败的编译。这将为您提供有关失败原因的更多信息,这应该可以让您解决根本问题。

关于c++ - 海合会 |源码编译麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28605348/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com