Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Building and Installing on Ubuntu 11.10

steelbrain edited this pageOct 3, 2014 ·34 revisions

Packages installation

Using sudo or as root user:

sudo apt-get updatesudo apt-get install git-core cmake g++ libboost-dev libmysqlclient-dev libxml2-dev libmcrypt-dev libicu-dev openssl binutils-dev libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev autoconf libtool libcurl4-openssl-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-filesystem-dev wget memcached libreadline-dev libncurses-dev libmemcached-dev libicu-dev libbz2-dev libc-client2007e-dev php5-mcrypt php5-imagick

Getting HipHop source-code

mkdir hiphopcd hiphopgit clone git://github.com/facebook/hhvm.git --depth=1cd hhvmexport CMAKE_PREFIX_PATH=`pwd`/../cd ..

Building third-party libraries

libevent

wget http://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gztar -xzvf libevent-2.0.18-stable.tar.gzcd libevent-2.0.18-stablecp ../hhvm/third-party/libevent-2.0.15-changes.diff .patch -p1 < libevent-2.0.15-changes.diff./configure --prefix=$CMAKE_PREFIX_PATHmakemake installcd ..

libCurl

Make sure that your system time is correct, otherwise ./configure will fail.

wget http://curl.haxx.se/download/curl-7.21.2.tar.gztar -xvzf curl-7.21.2.tar.gzcd curl-7.21.2cp ../hhvm/third-party/libcurl.fb-changes.diff .patch -p1 < libcurl.fb-changes.diff./configure --prefix=$CMAKE_PREFIX_PATHmakemake installcd ..

libmemcached

wget http://launchpad.net/libmemcached/1.0/0.49/+download/libmemcached-0.49.tar.gztar -xzvf libmemcached-0.49.tar.gzcd libmemcached-0.49./configure --prefix=$CMAKE_PREFIX_PATHmakemake installcd ..

Building HipHop

cd hhvmgit submodule update --init --recursivecmake .make

Running programs

The hhvm binary can be found inhphp/hhvm/hhvm.

Errors

If any errors occur, it may be required to remove theCMakeCache.txt directory 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 don’t, try to remove as explained above.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp