TODO
- Use node-pre-gyp for node C++ modules
- Use mason for C++ libraries and command line (cli) applications
For binaries to run properly they will need the latest libstdc++ version installed.
sudo apt-get install -y software-properties-common python-software-properties || true
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -y
sudo apt-get install -y libstdc++-5-dev
Note that the above lines use update
and install <package name>
not upgrade
.
The apt-get upgrade
command will upgrade every package on your system and does not accept arguments.
Usually what you want is to upgrade a single package. The way to do that is using update + install
like:
apt-get update -y
apt-get install -y <package name>
See https://linux.die.net/man/8/apt-get for more details.
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++-5-dev' ]
dependencies:
pre:
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -y update
- sudo apt-get -y install libstdc++-5-dev