sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-cache search "g\+\+"
sudo apt-get install gcc-4.8 g++-4.8
New problem : now system have 2 gcc compiler version 4.6 and 4.8.
use following direction.
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
No comments:
Post a Comment
would you like it. :)