Created
September 21, 2015 17:26
-
-
Save SpainTrain/8022f6d924c6c7624e09 to your computer and use it in GitHub Desktop.
CircleCI machine config for node-gyp with Node v4.X
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
machine: | |
node: | |
version: 4.1 | |
pre: | |
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install gcc-4.9 g++-4.9 | |
post: | |
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 |
--slave no longer works, try this:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 60 && sudo update-alternatives --set gcc /usr/bin/gcc-4.7 && sudo update-alternatives --set g++ /usr/bin/g++-4.7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SpainTrain - Missed the 3 month anniversary by 1 day! Hero of the day again and again! I owe you 1 🍺. Thanks!