Last active
December 23, 2015 12:09
-
-
Save adatta02/6632816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get all the pre-reqs installed: | |
sudo apt-get install 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 subversion \ | |
libboost-regex-dev libcurl4-openssl-dev libgoogle-glog-dev libjemalloc-dev | |
# Get the HipHop code | |
mkdir dev | |
cd dev | |
export CMAKE_PREFIX_PATH=`pwd` | |
git clone git://github.com/facebook/hiphop-php.git | |
# Get libevent and build it | |
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 .. | |
# Get libunwind and build it | |
# NOTE: You need to set a CFLAGS option or you'll hit an error - http://comments.gmane.org/gmane.comp.lib.unwind.devel/1133 | |
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.0.1.tar.gz | |
tar -zxvf libunwind-1.0.1.tar.gz | |
cd libunwind-1.0.1/ | |
export CFLAGS="-U_FORTIFY_SOURCE" | |
./configure --prefix=$CMAKE_PREFIX_PATH | |
make | |
make install | |
cd .. | |
# Build HipHop | |
# NOTE: This takes a loooong time on a small EC2 | |
cd hiphop-php | |
rm CMakeCache.txt | |
export HPHP_HOME=`pwd` | |
cmake . | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment