POV Ray 安装 - 配置错误

Jih*_*Noh 6 boost software-installation povray

我正在尝试安装 POV-Ray 3.7 稳定版。我从github repo下载了源代码。

我按照README 文件中描述的 unix 系统说明进行操作

不幸的是,我在运行配置命令时收到错误消息。

./configure COMPILED_BY="your name <email@address>" 
Run Code Online (Sandbox Code Playgroud)

第一个错误说找不到boost库1.37或更高版本,所以我安装了这些库。

sudo apt-get install libboost-all-dev
Run Code Online (Sandbox Code Playgroud)

现在我可以找到它们如下:

/usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_python-py33.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.53.0
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.53.0
Run Code Online (Sandbox Code Playgroud)

而我又尝试再次运行configure,报错信息是这样的。

...
checking for boostlib >= 1.37... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... yes
checking whether the boost thread library is usable... no
configure: error: in `/usr/local/povray-3.7-stable':
configure: error: cannot link with the boost thread library
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)

所以我添加了额外的选项--with-boost-libdir=/usr/lib/x86_64-linux-gnu/,但它也没有成功。

谁能告诉我我错过了什么?

Jih*_*Noh 11

我找到了。

配置脚本无法正确找到库链接。我写这个,以防有人和我有同样的问题。

./configure COMPILED_BY="name <email>" LIBS="-lboost_system -lboost_thread"
Run Code Online (Sandbox Code Playgroud)

这解决了我的问题,这里有一些其他的解决方案。[POV-Ray 新闻组


Kla*_*cha 2

Checking whether the boost thread library is usable... no
Run Code Online (Sandbox Code Playgroud)

您安装时可能也想安装libboost-thread1.53.0