ubuntu升级gcc和g++到4.8(支持c++11)步骤

时间:2014-02-07 04:47:48   收藏:0   阅读:507
不必卸载原有版本gcc和g++
1.升级gcc
apt-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 50
2.升级g++
apt-get install g++-4.8
最后使用gcc --version和g++ --version来验证版本


原文:http://lonelyprogram.blog.51cto.com/6246243/1355259

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!