Skip to content

Instantly share code, notes, and snippets.

@fabdrol
Created January 8, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabdrol/badce296267d836ca0bc759224acf98e to your computer and use it in GitHub Desktop.
Save fabdrol/badce296267d836ca0bc759224acf98e to your computer and use it in GitHub Desktop.
# To install Node v10.x on UDOObuntu (and ubuntu 14.04 LTS, I suppose) I ran into the issue (see below) that libstdc++6 >= 4.9.x was required, but 4.8.x was supplied.
# libstdc++6 is related to the build chain (g++/gcc). I ran the following commands to upgrade libstdc++6.
#
# The error message: `nodejs : Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04.4 is to be installed`
#
# btw - USE THIS AT YOUR OWN RISK AND RESPONSIBILITY.
# Get the right repo's
sudo apt-get update && sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update
sudo apt-get install gcc-snapshot -y && sudo apt-get update
# Install gcc-6 and related. Update system defaults to use them.
sudo apt-get install gcc-6 g++-6 -y && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
# Install node v10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Check that it worked
node -v
npm -v
node -e 'console.log("Boris: I am invincible!")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment