configure: error: Can not link to libboost_atomic
configure: error: Can not link to libboost_atomic
我正在尝试编译一些代码。我使用
安装了 boost
brew install boost
成功完成。然后我运行
autoreconf --install
然后让我 运行
./configure
但是它在寻找 libboost_atomic
:
时会产生错误
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking for boostlib >= 1.60... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt... yes
checking whether the Boost::Log library is available... yes
checking for exit in -lboost_log-mt... yes
checking for exit in -lboost_log_setup-mt... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-mt... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono-mt... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-mt... yes
checking whether the Boost::Date_Time library is available... yes
checking for exit in -lboost_date_time-mt... yes
checking for main in -lboost_atomic... no
configure: error: Can not link to libboost_atomic!
在互联网上搜索没有得到任何信息(我是该软件的用户,而不是开发人员,所以我不确定我是否正在寻找合适的条款)。
谁能告诉我我错过了什么?我需要安装更多依赖项吗?
系统是Mac10.11.
您缺少使用 boost 原子库进行开发的包。这是在 Linux 上编译内容时的一个常见问题,您的解决方法是始终 Google 库(增强原子)和您的 linux 风格,看看会得到什么。对于基于 Debian 的系统(例如 Ubuntu),
sudo apt-get install libboost-atomic-dev
应该解决这个问题。您可能会遇到其他此类错误 - 冲洗并重复。如果一切都失败了,你可以下载源代码,然后编译和安装它:
http://www.boost.org/doc/libs/1_53_0/doc/html/atomic.html
那里有制作说明。
我正在尝试编译一些代码。我使用
安装了 boostbrew install boost
成功完成。然后我运行
autoreconf --install
然后让我 运行
./configure
但是它在寻找 libboost_atomic
:
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking for boostlib >= 1.60... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt... yes
checking whether the Boost::Log library is available... yes
checking for exit in -lboost_log-mt... yes
checking for exit in -lboost_log_setup-mt... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-mt... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono-mt... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-mt... yes
checking whether the Boost::Date_Time library is available... yes
checking for exit in -lboost_date_time-mt... yes
checking for main in -lboost_atomic... no
configure: error: Can not link to libboost_atomic!
在互联网上搜索没有得到任何信息(我是该软件的用户,而不是开发人员,所以我不确定我是否正在寻找合适的条款)。
谁能告诉我我错过了什么?我需要安装更多依赖项吗?
系统是Mac10.11.
您缺少使用 boost 原子库进行开发的包。这是在 Linux 上编译内容时的一个常见问题,您的解决方法是始终 Google 库(增强原子)和您的 linux 风格,看看会得到什么。对于基于 Debian 的系统(例如 Ubuntu),
sudo apt-get install libboost-atomic-dev
应该解决这个问题。您可能会遇到其他此类错误 - 冲洗并重复。如果一切都失败了,你可以下载源代码,然后编译和安装它: http://www.boost.org/doc/libs/1_53_0/doc/html/atomic.html
那里有制作说明。