mirror of
https://github.com/facebook/hhvm.git
synced 2026-03-20 04:46:21 +00:00
Page:
Building and installing HHVM on Ubuntu 14.04 (arm64)
Pages
Building and installing HHVM on OSX 10.8 With Homebrew
Building RPMs for HHVM on CentOS 6.6
Building and Installing HHVM on Cygwin
Building and Installing HHVM
Building and Installing on FreeBSD 8.2
Building and Installing on OpenBSD 6.1
Building and installing HHVM on Amazon Linux 2013.09.1
Building and installing HHVM on Amazon Linux 2014.03
Building and installing HHVM on Amazon Linux 2016.03
Building and installing HHVM on CentOS 5
Building and installing HHVM on CentOS 6.3
Building and installing HHVM on CentOS 6.4
Building and installing HHVM on CentOS 6.6
Building and installing HHVM on Debian 6
Building and installing HHVM on Debian 7
Building and installing HHVM on Debian 8
Building and installing HHVM on Fedora 19 or 20
Building and installing HHVM on Fedora 19
Building and installing HHVM on FreeBSD from ports
Building and installing HHVM on Gentoo
Building and installing HHVM on Mint 15
Building and installing HHVM on Mint 17
Building and installing HHVM on OSX 10.10 with MacPorts
Building and installing HHVM on OSX 10.10
Building and installing HHVM on OSX 10.9
Building and installing HHVM on RHEL 7
Building and installing HHVM on Ubuntu 12.04
Building and installing HHVM on Ubuntu 12.10
Building and installing HHVM on Ubuntu 13.04
Building and installing HHVM on Ubuntu 13.10
Building and installing HHVM on Ubuntu 14.04 (arm64)
Building and installing HHVM on Ubuntu 14.04
Building and installing HHVM on Ubuntu 14.10
Building and installing HHVM on Ubuntu 15.04
Building and installing HHVM on Ubuntu 15.10
Building and installing HHVM on Windows with MSVC
Building and installing hhvm on CentOS 7.x
Building and installing on Ubuntu 10.04 LTS
Building and installing on Ubuntu 10.10
Building the Hack Typechecker
DSO 3.5.0
Extension API
FAQ
FastCGI
Getting Started
HHVM Composer Plugin for Debian Based Systems
HHVM builtin Webserver
Hack Editor Plugins
Hackabook. ID#1080032452
Home
How to Report Issues
Human Timeouts
INI Settings
Libevent Removal
Long term support (LTS)
Mirror
Open Academy
Package Maintainers
Performance Tuning
Prebuilt Packages for HHVM
Prebuilt Packages on Arch Linux
Prebuilt Packages on Centos 7.x
Prebuilt Packages on Debian 7
Prebuilt Packages on Debian 8
Prebuilt Packages on Mint 15
Prebuilt Packages on Mint 16
Prebuilt Packages on Ubuntu 12.04
Prebuilt Packages on Ubuntu 13.04
Prebuilt Packages on Ubuntu 13.10
Prebuilt Ulyaoth Repository
Prebuilt packages on Ubuntu 10.04
Prebuilt packages on Ubuntu 14.04
Prebuilt packages on Ubuntu 15.04 (vivid)
Profiling
Reporting Crashes
Running HipHop VM
Running PHP programs with HHVM
Users
What is Phabricator
No results
Packages Installation
Please Note: 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)
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 \
libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
libexpat-dev libgd2-xpm-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 gawk
Note: On arm64 (aarch64) we need to build google-glog and libevent from source.
Downloading the source-code
mkdir $HOME/hhvm-for-arm64
cd $HOME/hhvm-for-arm64
# HHVM source checkout
git clone git://github.com/facebook/hhvm.git --depth=1
(cd hhvm; git submodule update --init --recursive)
# google-glog source checkout
svn checkout http://google-glog.googlecode.com/svn/trunk google-glog
# libevent source checkout
git clone git://github.com/libevent/libevent.git
Building all HHVM and google-glog and libevent from source.
Please ensure that your machine has more than 1GB of RAM
cd $HOME/hhvm-for-arm64
export CMAKE_PREFIX_PATH=`pwd`/local
cd google-glog
autoreconf -fvi
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..
cd libevent
git checkout release-1.4.14b-stable
cat ../hhvm/hphp/patches/libevent-1.4.14b.patch | patch -p1
./autogen.sh
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..
cd hhvm
export HPHP_HOME=`pwd`
cmake -DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH -DCMAKE_INSTALL_PREFIX:PATH=$CMAKE_PREFIX_PATH .
make
make install
Running programs
The hhvm binary can be found in $CMAKE_PREFIX/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.