安装以下依赖包:
gcc gcc-c++ make patch
openssl-devel
openldap-devel
mysql-devel
libxml2-devel
pcre-devel
binutils-devel
pam-devel
zlib-devel
boost-devel
libcap-devel
bzip2-devel
readline-devel
expat-devel
libc-client-devel
gd-devel
libicu-devel
oniguruma-devel
libevent,libcurl需要打上hiphop补丁
为避免libevent,libcurl与系统带的库冲突,configure加入参数--prefix=/root/libs/
libmcrypt-2.5.8.tar.bz2(configure加入参数--prefix=/root/libs/)
libmemcached-devel > 0.39 (configure加入参数--prefix=/root/libs/centos6.3系统自带的版本低)
tar xvf tbb40_20120613oss_src.tgz
make
cp build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release/* /root/libs/lib/
cd include
cp * /usr/include -R
export LIBRARY_PATH=/root/libs/lib/
export LD_LIBRARY_PATH=/root/libs/lib/
进入hiphop-php目录
export CMAKE_PREFIX_PATH=/root/libs
export HPHP_HOME=`pwd`
export HPHP_LIB=`pwd`/bin
cmake .
make
阅读(2895) | 评论(0) | 转发(0) |