Created
November 12, 2014 04:04
-
-
Save gravitano/3001181eaf3c4b9b75fe to your computer and use it in GitHub Desktop.
Install HHVM on Ubuntu 12.04/Elementary
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
sudo apt-get install git-core cmake g++ 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 automake libtool libcurl4-openssl-dev \ | |
wget memcached libreadline-dev libncurses-dev libmemcached-dev libbz2-dev \ | |
libc-client2007e-dev php5-mcrypt php5-imagick libgoogle-perftools-dev \ | |
libcloog-ppl0 libelf-dev libdwarf-dev subversion python-software-properties \ | |
libmagickwand-dev libxslt1-dev ocaml-native-compilers libevent-dev | |
# Update GCC | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-4.8 g++-4.8 | |
# Update Alternative | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-4.8 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-4.6 | |
sudo update-alternatives --set gcc /usr/bin/gcc-4.8 | |
# Install Boost | |
sudo add-apt-repository ppa:mapnik/boost | |
sudo apt-get update | |
sudo apt-get install libboost1.49-dev libboost-regex1.49-dev \ | |
libboost-system1.49-dev libboost-program-options1.49-dev \ | |
libboost-filesystem1.49-dev libboost-thread1.49-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment