Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save scriptmaster/8eb29173fb7cce9935f460694f84ba2c to your computer and use it in GitHub Desktop.
Save scriptmaster/8eb29173fb7cce9935f460694f84ba2c to your computer and use it in GitHub Desktop.
nodejs-fibers-or-native-node-modules-install-problem-update-gcc
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install build-essential -y
sudo apt-get install gcc-4.8 g++-4.8 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
export CC=gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment