Skip to content

Building and installing HHVM on Fedora 19

Darrell Duane edited this page Dec 15, 2015 · 23 revisions

Packages installation

sudo yum install git svn cpp make autoconf automake libtool patch memcached gcc-c++ cmake wget boost-devel mysql-devel pcre-devel gd-devel libxml2-devel expat-devel libicu-devel bzip2-devel oniguruma-devel openldap-devel libedit-devel libc-client-devel libcap-devel binutils-devel pam-devel elfutils-libelf-devel libmcrypt-devel libcurl-devel libmemcached-devel jemalloc-devel tbb-devel libdwarf-devel ImageMagick-devel libxslt-devel ocaml libevent-devel gperf 

Getting HHVM source code

mkdir dev
cd dev
git clone git://github.com/facebook/hhvm.git
export CMAKE_PREFIX_PATH=`pwd`
cd hhvm
git submodule update --init --recursive
cd ..

Google glog

git clone https://github.com/google/glog.git
cd glog
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..

Building HHVM

cd hhvm
cmake .
make

Running programs

The hhvm binary can be found in hphp/hhvm/hhvm.

The Hack language

See https://github.com/facebook/hhvm/wiki/Building-the-Hack-Typechecker.

Clone this wiki locally