【问题标题】:PHC Configure fails. Can't find boost library but it's installedPHC 配置失败。找不到 boost 库,但它已安装
【发布时间】: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 &lt;boost/version.hpp&gt; - 你这样做了吗?
  • 我做到了; #define BOOST_VERSION 104100

标签: php build compilation


【解决方案1】:

我重新编译了 PHP 并安装了它。这解决了问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-01
    • 2019-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多