Last active
August 29, 2015 13:56
Revisions
-
shivaas revised this gist
Mar 5, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -52,7 +52,7 @@ sudo yum -y install \ cd ~ && \ git clone git://github.com/facebook/hhvm.git && \ cd hhvm && \ git checkout HHVM-2.4.1 && \ git submodule init && \ git submodule update && \ export CMAKE_PREFIX_PATH=`pwd`/.. && \ -
shivaas revised this gist
Mar 4, 2014 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -104,6 +104,13 @@ sudo make install && \ cd .. ``` If you are not installing libevent per the above instructions, then you need to update the CMake config so it can look for the system libevent in the right path. Edit /hhvm/CMake/FindLibEvent.cmake and add the following on line 12 (after the endforeach) ``` list(APPEND LibEvent_INCLUDE_PATHS "/usr/include") list(APPEND LibEvent_LIB_PATHS "/usr/lib64") ``` ## Install Google Glog ```sh wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz && \ -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -67,9 +67,7 @@ tar zxvf tbb42*.tgz && \ cd tbb42* && \ cd src && \ make -j 32 cd .. && \ sudo mkdir -p /usr/include/serial && \ sudo cp -a include/serial/* /usr/include/serial/ && \ -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -65,7 +65,7 @@ cd .. wget https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz && \ tar zxvf tbb42*.tgz && \ cd tbb42* && \ cd src && \ make -j 32 ``` @@ -129,6 +129,8 @@ cd hhvm && \ export HPHP_HOME=`pwd` cmake -j 32 . make -j 32 sudo make install ``` -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -81,7 +81,7 @@ cd .. ``` ## Install libdwarf ```sh git clone git://libdwarf.git.sourceforge.net/gitroot/libdwarf/libdwarf && \ cd libdwarf/libdwarf && \ git checkout 20120410 && \ @@ -107,7 +107,7 @@ cd .. ``` ## Install Google Glog ```sh wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz && \ tar zxvf glog-0.3.3.tar.gz && \ svn checkout http://google-glog.googlecode.com/svn/trunk/ google-glog && \ @@ -119,7 +119,7 @@ cd .. ``` ```sh sudo ldconfig ``` -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 16 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,7 @@ sudo yum -y install \ ``` ## Download HHVM ```sh cd ~ && \ git clone git://github.com/facebook/hhvm.git && \ cd hhvm && \ @@ -61,15 +61,15 @@ cd .. ``` ### Intel Thread Building Blocks (tbb) (4.0 or newer) ```sh wget https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz && \ tar zxvf tbb42*.tgz && \ cd tbb42* && \ cd src make -j 32 ``` ```sh cd .. && \ sudo mkdir -p /usr/include/serial && \ sudo cp -a include/serial/* /usr/include/serial/ && \ @@ -80,6 +80,7 @@ sudo ln -s /usr/lib64/libtbb.so.2 /usr/lib64/libtbb.so && \ cd .. ``` ## Install libdwarf ``` git clone git://libdwarf.git.sourceforge.net/gitroot/libdwarf/libdwarf && \ cd libdwarf/libdwarf && \ @@ -93,7 +94,7 @@ cd ../.. ``` You don't need libevent if running HHVM as a fastcgi proxy. ```sh git clone git://github.com/libevent/libevent.git && \ cd libevent && \ git checkout release-1.4.14b-stable && \ @@ -103,7 +104,10 @@ cat ../hhvm/hphp/third_party/libevent-1.4.14.fb-changes.diff | patch -p1 && \ make -j 32 && \ sudo make install && \ cd .. ``` ## Install Google Glog ``` wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz && \ tar zxvf glog-0.3.3.tar.gz && \ svn checkout http://google-glog.googlecode.com/svn/trunk/ google-glog && \ @@ -113,11 +117,18 @@ make -j 32 && \ sudo make install && \ cd .. ``` ``` sudo ldconfig ``` ## Make & Install HHVM ```sh cd hhvm && \ export HPHP_HOME=`pwd` cmake -j 32 . make -j 32 sudo make install ``` -
shivaas renamed this gist
Feb 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 52 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,50 @@ Note: Replace 32 with the number of cores you have available on the machine. ------------- ## Dependencies ```sh sudo yum -y update && \ sudo yum -y install \ autoconf \ automake \ binutils-devel \ boost-devel \ bzip2-devel \ chrpath \ cmake \ cpp \ curl-devel \ elfutils-libelf-devel \ expat-devel \ gd-devel \ git \ gcc47-c++ \ jemalloc-devel \ libc-client-devel \ libcap-devel \ libicu-devel \ libIDL-devel \ libmcrypt-devel \ libmemcached-devel \ libtool \ libxml2-devel \ make \ memcached \ mysql-devel \ oniguruma-devel \ openldap-devel \ pam-devel \ patch \ pcre-devel \ readline-devel \ svn \ wget \ ; ``` ## Download HHVM ``` cd ~ && \ git clone git://github.com/facebook/hhvm.git && \ cd hhvm && \ @@ -14,14 +58,18 @@ git submodule update && \ export CMAKE_PREFIX_PATH=`pwd`/.. && \ export HPHP_HOME=`pwd` && \ cd .. ``` ### Intel Thread Building Blocks (tbb) (4.0 or newer) ``` wget https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz && \ tar zxvf tbb42*.tgz && \ cd tbb42* && \ cd src make -j 32 ``` ``` cd .. && \ sudo mkdir -p /usr/include/serial && \ sudo cp -a include/serial/* /usr/include/serial/ && \ @@ -30,7 +78,9 @@ sudo cp -a include/tbb/* /usr/include/tbb/ && \ sudo cp build/linux_intel64*/libtbb.so.2 /usr/lib64/ && \ sudo ln -s /usr/lib64/libtbb.so.2 /usr/lib64/libtbb.so && \ cd .. ``` ``` git clone git://libdwarf.git.sourceforge.net/gitroot/libdwarf/libdwarf && \ cd libdwarf/libdwarf && \ git checkout 20120410 && \ @@ -40,7 +90,7 @@ sudo cp libdwarf.a /usr/lib64/ && \ sudo cp libdwarf.h /usr/include/ && \ sudo cp dwarf.h /usr/include/ && \ cd ../.. ``` You don't need libevent if running HHVM as a fastcgi proxy. -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -41,6 +41,9 @@ sudo cp libdwarf.h /usr/include/ && \ sudo cp dwarf.h /usr/include/ && \ cd ../.. You don't need libevent if running HHVM as a fastcgi proxy. git clone git://github.com/libevent/libevent.git && \ cd libevent && \ git checkout release-1.4.14b-stable && \ -
shivaas revised this gist
Feb 13, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ Recommend spinning up a c3.8xlarge instance that gives you 32 cores and 60gigs of memory to compile the libraries. Once you are done installing, you can downsize the box and continue using HHVM. Note: Replace 32 with the number of cores you have available on the machine. ------------- cd ~ && \ -
shivaas created this gist
Feb 12, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,68 @@ Recommend spinning up a c3.8xlarge instance that gives you 32 cores and 60gigs of memory to compile the libraries. Once you are done installing, you can downsize the box and continue using HHVM. ------------- cd ~ && \ git clone git://github.com/facebook/hhvm.git && \ cd hhvm && \ git checkout HHVM-2.4.0 && \ git submodule init && \ git submodule update && \ export CMAKE_PREFIX_PATH=`pwd`/.. && \ export HPHP_HOME=`pwd` && \ cd .. wget https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz && \ tar zxvf tbb42*.tgz && \ cd tbb42* && \ cd src make -j 32 cd .. && \ sudo mkdir -p /usr/include/serial && \ sudo cp -a include/serial/* /usr/include/serial/ && \ sudo mkdir -p /usr/include/tbb && \ sudo cp -a include/tbb/* /usr/include/tbb/ && \ sudo cp build/linux_intel64*/libtbb.so.2 /usr/lib64/ && \ sudo ln -s /usr/lib64/libtbb.so.2 /usr/lib64/libtbb.so && \ cd .. git clone git://libdwarf.git.sourceforge.net/gitroot/libdwarf/libdwarf && \ cd libdwarf/libdwarf && \ git checkout 20120410 && \ ./configure && \ make -j 32 && \ sudo cp libdwarf.a /usr/lib64/ && \ sudo cp libdwarf.h /usr/include/ && \ sudo cp dwarf.h /usr/include/ && \ cd ../.. git clone git://github.com/libevent/libevent.git && \ cd libevent && \ git checkout release-1.4.14b-stable && \ cat ../hhvm/hphp/third_party/libevent-1.4.14.fb-changes.diff | patch -p1 && \ ./autogen.sh && \ ./configure --prefix=/usr && \ make -j 32 && \ sudo make install && \ cd .. wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz && \ tar zxvf glog-0.3.3.tar.gz && \ svn checkout http://google-glog.googlecode.com/svn/trunk/ google-glog && \ cd google-glog && \ ./configure --prefix=/usr && \ make -j 32 && \ sudo make install && \ cd .. sudo ldconfig cd hhvm && \ export HPHP_HOME=`pwd` cmake -j 32 . make -j 32 sudo make install