Last active
December 18, 2015 13:10
-
-
Save ftdebugger/5788357 to your computer and use it in GitHub Desktop.
Just type in console curl https://gist.github.com/ftdebugger/5788357/raw/344c94da48f0cdce1ba27bb5d9916e612f020c2d/gistfile1.sh | sh - for compile hiphop-php
This file contains 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
#!/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