Get gcc
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
Add repo
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
Reset all gcc/g++ environment
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
Install gcc/g++ to system
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 30
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 40
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 30
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 40
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --set c++ /usr/bin/g++
Switch gcc/g++ version
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
訂閱:
張貼留言 (Atom)
Install KDE Desktop for Ubuntu 24.04
1. Enter following command to install the KDE-plasma sudo apt install kde-plasma-desktop 2. Disable the login screen 2-1. Create default sdd...
-
1 . Compile pcre Build command as below CUR_PATH=`pwd` BUILD_PATH=$CUR_PATH/MyBuild mkdir -p $CUR_PATH/MyBuild make distclean ./configure...
-
AAC Extra data have 16 bits: Audio object type - normally 5 bits, but 11 bits if AOT_ESCAPE Sampling index - 4 bits if (Sampling index == 15...
-
sudo apt-get update sudo apt-get install build-essential fakeroot dpkg-dev sudo apt-get build-dep -y sudo apt-get install libcurl4-openss...
沒有留言:
張貼留言