CentOS 7安装HHVM

一、安装依赖

# Need to be ran under root priv or you can sudo it
# Update your CentOS first
yum update -y
# Then you need to get EPEL repositories
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
# Install some dependencies
yum install cpp gcc-c++ cmake git psmisc {binutils,boost,jemalloc,numactl}-devel \
{ImageMagick,sqlite,tbb,bzip2,openldap,readline,elfutils-libelf,gmp,lz4,pcre}-devel \
lib{xslt,event,yaml,vpx,png,zip,icu,mcrypt,memcached,cap,dwarf}-devel \
{unixODBC,expat,mariadb}-devel lib{edit,curl,xml2,xslt}-devel \
glog-devel oniguruma-devel ocaml gperf enca libjpeg-turbo-devel openssl-devel \
mariadb mariadb-server {fastlz,double-conversion,re2}-devel make -y
# Optional dependencies (these extensions are not built by default)
yum install {fribidi,libc-client}-devel -y
# Get our hhvm
cd /tmp
git clone https://github.com/facebook/hhvm -b master  hhvm  --recursive
cd hhvm

二、编译

# Okay let's go
cmake .
# Multithreads compiling
make -j$(($(nproc)+1))
# Compiled?
./hphp/hhvm/hhvm --version
# Install it
make install
# Final
hhvm --version
发布日期:
分类:Docs 标签:

发表评论

邮箱地址不会被公开。 必填项已用*标注