红联Linux门户
Linux帮助

基于Ubuntu 14.04下搭建HHVM环境

发布时间:2015-04-07 15:39:05来源:linux网站作者:Going谢斌-Jobs

基于ubuntu14.04下搭建hhvm环境,有需要的朋友可以参考下。

一直想试试facebook的hhvm,今天搭建一下.

1.编译hhvm

http://github.com/facebook

找到hhvm

github提供已经编译的,我们这里就自己执行一下

You must be running a 64-bit OS to compile & install HHVM.

Using sudo or as root user: (it is recommended to run sudo apt-get update ands udo apt-get upgrade first, or you may receive errors)

Packages Installation 安装编译所需要的库

sudo apt-get install autoconf automake binutils-dev build-essential cmake g++ git \
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
libboost-system-dev libboost-thread-dev libbz2-dev libc-client-dev libldap2-dev \
libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev libevent-dev \
libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev libiberty-dev libxslt1-dev ocaml-native-compilers

Downloading the HHVM source-code

git clone git://github.com/facebook/hhvm.git
cd hhvm
git submodule update --init --recursive
cd ..

Building HHVM

cd hhvm
cmake .
make
sudo make install

Running programs

The hhvm binary can be found in /usr/local/bin.

Errors

If any errors occur, it may be required to remove the CMakeCache.txt file in the checkout.

If your failure was on the make command, try to correct the error and run make again,

it should restart from the point it stops. If the error persists, try to remove as explained above.

2.下载xampp

百度xampp

下载 linux版本的xampp