Last active
September 9, 2015 13:51
-
-
Save craigminihan/804056d8b23d8d6b2565 to your computer and use it in GitHub Desktop.
Prep Ubuntu 12.04 (Travis-CI) to build with GCC 4.8 and Boost 1.57
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
# first update sudoers for the current user, run: sudo visudo | |
# append the line: username ALL = NOPASSWD : ALL | |
# suppress hash errors by removing files from this dir | |
sudo rm /var/lib/apt/lists/* | |
sudo apt-get update | |
sudo apt-get install -y gcc g++ git | |
sudo apt-get install -y curl | |
sudo apt-get install -y python-dev python-software-properties | |
sudo apt-get install -y zlib1g-dev libbz2-dev | |
sudo apt-get install -y libcppunit-dev | |
# GCC 4.8 | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install -y g++-4.8 | |
sudo rm -f /usr/bin/g++ | |
sudo rm -f /usr/bin/gcc | |
sudo rm -f /usr/bin/gcov | |
sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++ | |
sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc | |
sudo ln -s /usr/bin/gcov-4.8 /usr/bin/gcov | |
# boost | |
cd ~ | |
mkdir Downloads | |
cd Downloads | |
curl http://heanet.dl.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2 -O | |
tar xvfj boost_1_57_0.tar.bz2 | |
pushd boost_1_57_0 | |
./bootstrap.sh | |
sudo ./b2 install -j 2 --prefix=/usr link=static | |
popd | |
# nodejs | |
curl https://nodejs.org/dist/v0.10.40/node-v0.10.40-linux-x64.tar.gz -O | |
tar xvfz node-v0.10.40-linux-x64.tar.gz | |
sudo mv node-v0.10.40-linux-x64 /usr/local | |
sudo ln -s /usr/local/node-v0.10.40-linux-x64/bin/node /usr/local/bin/node | |
sudo ln -s /usr/local/node-v0.10.40-linux-x64/bin/npm /usr/local/bin/npm | |
# python pip | |
curl https://bootstrap.pypa.io/get-pip.py -O | |
sudo python get-pip.py | |
# ruby | |
#curl https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz -O | |
#tar xvfz ruby-2.2.3.tar.gz | |
#pushd ruby-2.2.3 | |
#./configure | |
#make -j 2 | |
#sudo make install | |
#popd | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm install 1.9.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment