ubuntu升级gcc和g++到4.8(支持c++11)步骤
时间:2014-02-07 04:47:48
收藏:0
阅读:507
不必卸载原有版本gcc和g++
1.升级gccapt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo apt-get install gcc-4.8sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 502.升级g++apt-get install g++-4.8最后使用gcc --version和g++ --version来验证版本原文:http://lonelyprogram.blog.51cto.com/6246243/1355259
评论(0)