Skip to content

Instantly share code, notes, and snippets.

@acgetchell
Last active January 1, 2016 19:39
Show Gist options
  • Select an option

  • Save acgetchell/8192256 to your computer and use it in GitHub Desktop.

Select an option

Save acgetchell/8192256 to your computer and use it in GitHub Desktop.
An external shell script used for Vagrant provisioning of Ubuntu 12.04 LTS 64-bit to build gcc-4.8 and libraries to support C++11, and then build CGAL which requires C++11 features
#!/bin/bash
set -e # Exit script immediately on first error
set -x # Print commands and their arguments as they are executed
# Update package index
sudo apt-get update -y
# Install add-apt
sudo apt-get install python-software-properties -y
# Add repo with gcc-4.8
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -qq -y
# Install gcc-4.8
sudo apt-get install -qq g++-4.8 -y
export CXX="g++-4.8"
export CC="gcc-4.8"
sudo apt-get install -qq libboost-all-dev -y
sudo apt-get install -qq libmpfr-dev -y
sudo apt-get install -qq cmake -y
sudo apt-get install -qq curl -y
sudo apt-get install -qq libgmp3-dev -y
curl -O https://gforge.inria.fr/frs/download.php/32994/CGAL-4.3.tar.gz
tar zxvf CGAL-4.3.tar.gz &> install.log
cd CGAL-4.3
cmake .
make
sudo make install &>> install.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment