HHVM - HipHop Virtual Machine (PHP) - Debian
HipHop Virtual Machine - Debian installation
About
HipHop Virtual Machine (HHVM) is an open-source virtual machine based on just-in-time (JIT) compilation that serves as an execution engine for the PHP and Hack programming language. By using the principle of JIT compilation, executed PHP or Hack code is first transformed into intermediate HipHop bytecode (HHBC), which is then dynamically translated into x86-64 machine code, optimized, and natively executed. This contrasts with PHP's usual interpreted execution, in which the Zend Engine transforms PHP source code into opcodes that serve as a form of bytecode, and executes the opcodes directly on the Zend Engine's virtual CPU.Installation from source
Prepare
apt-get install git-core cmake gawk libmysqlclient-dev \
libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \
libcap-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \
autoconf libtool libcurl4-openssl-dev wget memcached \
libreadline-dev libncurses5-dev libmemcached-dev libbz2-dev \
libc-client2007e-dev php5-mcrypt php5-imagick libgoogle-perftools-dev \
libcloog-ppl-dev libelf-dev libdwarf-dev libunwind8-dev subversion \
libtbb2 g++-4.8 gcc-4.8 libjemalloc-dev \
libc6-dev libmpfr4 libgcc1 binutils \
libc6 libc-dev-bin libc-bin libgomp1 \
libstdc++-4.8-dev libstdc++6 \
libarchive13 cmake-data libacl1 libattr1 \
g++ cpp gcc make libboost-thread1.55.0 \
libboost-thread-dev libgd2-xpm-dev \
pkg-config libboost-system1.55-dev libboost-context1.55-dev \
libboost-program-options1.55-dev libboost-filesystem1.55-dev libboost-regex1.55-dev \
libmagickwand-dev libiberty-dev libevent-dev libxslt-dev libgoogle-glog-dev \
automake libldap2-dev libkrb5-dev libyaml-dev gperf ocaml-native-compilers libpq-dev
Install
git clone git://github.com/facebook/hhvm.git --depth=1
export CMAKE_PREFIX_PATH=`pwd`
cd hhvm/
git submodule update --init --recursive
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/opt/hhvm ../
make -j4 # -jNUMBER_OF_CPU_CORES
make install
Installation from binaries
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/debian jessie main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm
No comments: