我一直在最新的 centos-6.3 和 gcc-4.6.2 上使用 hiphop,并遵循以下指南进行 hiphop 编译https://github.com/facebook/hiphop-php/wiki/Building-and-installing-HHVM-on-CentOS-6.3。然而编译在 90% 时失败并产生错误,其中一些错误如下所示,有人可以帮我解决吗?
[ 1%] Built target timelib
[ 2%] Built target xhp
[ 10%] Built target mbfl
[ 11%] Built target afdt
[ 14%] Built target folly
[ 15%] Built target double-conversion
[ 15%] Built target sqlite3
[ 15%] Built target lz4
[ 67%] Built target hphp_runtime_static
[ 77%] Built target hphp_analysis
[ 90%] Built target ext_hhvm_static
Linking CXX executable hhvm
scalar_arrays_0.no.cpp:(.text+0x562): undefined reference to `boost::system::system_category()'
../../bin/libhphp_runtime.a(literal_strings_0.no.cpp.o): In function `__static_initialization_and_destruction_0(int, int)':
literal_strings_0.no.cpp:(.text+0x4d): undefined reference to `boost::system::generic_category()'
literal_strings_0.no.cpp:(.text+0x59): undefined reference to `boost::system::generic_category()'
literal_strings_0.no.cpp:(.text+0x65): undefined reference to `boost::system::system_category()'
collect2: ld returned 1 exit status
make[2]: *** [hphp/hhvm/hhvm] Error 1
make[1]: *** [hphp/hhvm/CMakeFiles/hhvm.dir/all] Error 2
make: *** [all] Error 2
答案1
来自您自己的链接“如果您在构建时遇到一些问题,您还可以尝试将 Boost 升级到 1.50 版本并将 GCC 升级到 4.6.1 版本:您可以按照以下说明构建 BOOST:https://github.com/jackywei/HOW-TO-BUILD-HHVM-WiKi/wiki/Build-&-install-Boost-1.50-in-CentOS-(CentOS5.2-&-6.3-are-both-verified)“
我猜你正在使用旧版本的 boost,这就是问题所在 - 因为所有问题都与 boost 有关。