Skip to content

Updating your compiler

martiliones edited this page Jun 23, 2020 · 1 revision

Ubuntu / Debian Users

On older builds of Ubuntu / Debian, GCC/G++ won't be up to date and so your "make" process will error.

To ensure you're using the latest version of GCC to be able to use AimTux, use the commands below.

Ubuntu

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-9 g++-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9

Debian

Add debian testing repo to your apt sources by creating a file on /etc/apt/sources.list.d folder containing the line deb http://ftp.us.debian.org/debian testing main contrib non-free

Instruct debian to use testing sources on certain packages by creating a file on /etc/apt/preferences.d containing the following:

Package: *
Pin: release a=testing
Pin-Priority: 100

You can replace the * by the package name that you want to install from testing (in this case would be gcc), but with Pin-Priority: 100, testing packages will be installed only if explicitly told to apt-get

Update apt database: sudo apt-get update

Install gcc from testing: sudo apt-get install -t testing gcc g++

Clone this wiki locally