【发布时间】:2010-09-03 03:26:16
【问题描述】:
由于某种原因,当我尝试配置 phc-0.2.0.3 哦我的机器时(Fedora Linux localhost.localdomain 2.6.34.6-47.fc13.i686 #1 SMP Fri Aug 27 09:48:44 UTC 2010 i686 i686 i386 GNU/Linux)我收到以下错误:
checking for boostlib >= 1.34.0... configure: error: We could not detect the boost libraries (version 1.34 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
Boost 安装到 /usr/include/boost。我尝试将错误中指定的环境变量设置为 $BOOST_ROOT=/usr/include/boost,但当它不起作用时,我尝试了 $BOOST_ROOT=/usr/include。一旦我这样做了,我就尝试了
./configure --with-boost
和
./configure
两次我都遇到了同样的错误。这是phc的网站: http://www.phpcompiler.org/
提升网站在这里: http://www.randspringer.de/boost/ucl.html
以前有人遇到过这个问题吗?
【问题讨论】:
-
If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>- 你这样做了吗? -
我做到了; #define BOOST_VERSION 104100
标签: php build compilation