阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

基于Ubuntu 14.04下搭建HHVM环境

105次阅读
没有评论

共计 1606 个字符,预计需要花费 5 分钟才能阅读完成。

一直想试试 Facebook 的 HHVM,今天在 Ubuntu 14.04 下搭建试试。

HHVM 宣布支持 FastCGI http://www.linuxidc.com/Linux/2013-12/94254.htm

1、编译 HHVM

http://github.com/facebook

找到 hhvm

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

安装 hhvm 只能在 64 位机器里面

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 and sudo 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 runmake again,

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

2、下载 xampp

百度 xampp

下载 linux 版本的 xampp

HHVM 的详细介绍 :请点这里
HHVM 的下载地址 :请点这里

更多 Ubuntu 相关信息见 Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-20发表,共计1606字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中