- wget https://cmake.org/files/v3.12/cmake-3.12.4.tar.gz
- tar -xvzf cmake-3.12.4.tar.gz
- cd cmake-3.12.4
- ./configure
- make
- sudo make install
- sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
- cmake --version
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- sudo apt update
- sudo apt install gcc-6
- sudo apt install g++-6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6