Skip to content

Instantly share code, notes, and snippets.

@ftdebugger
Last active December 18, 2015 13:10
Show Gist options
  • Save ftdebugger/5788357 to your computer and use it in GitHub Desktop.
Save ftdebugger/5788357 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Packages installation"
sudo apt-get update
sudo apt-get install -y git-core cmake g++ libboost-dev libmysqlclient-dev \
libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \
libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \
autoconf libtool libcurl4-openssl-dev libboost-system-dev \
libboost-program-options-dev libboost-filesystem-dev wget memcached \
libreadline-dev libncurses-dev libmemcached-dev libbz2-dev \
libc-client2007e-dev php5-mcrypt php5-imagick libgoogle-perftools-dev \
libelf-dev libdwarf-dev libunwind8-dev subversion \
libboost-regex-dev libcurl4-openssl-dev libgoogle-glog-dev libjemalloc-dev
echo "Getting HipHop source-code"
mkdir hiphop
cd hiphop
export CMAKE_PREFIX_PATH=`pwd`
git clone git://github.com/facebook/hiphop-php.git
echo "Building third-party libraries"
echo "libevent"
git clone git://github.com/libevent/libevent.git
cd libevent
git checkout release-1.4.14b-stable
cat ../hiphop-php/hphp/third_party/libevent-1.4.14.fb-changes.diff | patch -p1
./autogen.sh
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..
echo "Building HipHop"
cd hiphop-php
export HPHP_HOME=`pwd`
cmake .
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment