ubuntu12.04上安装gcc4.8
2014-07-22 18:51
197 查看
How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04
Want GCC 4.8 with c++11 complete feature? Well here’s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.
The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system.
1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to add the ppa:
2.) Then install gcc 4.8 and g++ 4.8:
3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.
Now you have the gcc 4.8 with c++11 complete feature in your system. Check out by:
gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/
Want GCC 4.8 with c++11 complete feature? Well here’s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.
The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system.
1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to add the ppa:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
2.) Then install gcc 4.8 and g++ 4.8:
sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8
3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.
sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 sudo update-alternatives --config gcc sudo update-alternatives --config g++
Now you have the gcc 4.8 with c++11 complete feature in your system. Check out by:
gcc --version
gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/
相关文章推荐
- 安装在ubuntu12.04上安装gcc4.8
- 安装在ubuntu12.04上安装gcc4.8
- XP下硬盘安装Ubuntu12.04桌面版全程图解
- ubuntu12.04安装中文输入法(ibus)和开机自动启动ibus应用
- Ubuntu12.04 64bit 下安装VNC server
- ubuntu12.04下安装jdk详细步骤
- ubuntu12.04安装笔记
- ubuntu12.04安装lamp的简单lamp
- 安装 phpdaemon (ubuntu12.04)
- ubuntu12.04安装jdk7
- Ubuntu12.04下手动配置安装apache+php+mysql
- ubuntu12.04 中EMACS安装过程中关于crt*.o定位的问题
- ubuntu12.04 32bit 安装 JDK6
- 升级安装ubuntu12.04的感受
- ubuntu12.04安装lnmp0.9安装总结
- Ubuntu12.04的vbox中安装xp遇到问题
- 在win8下安装ubuntu12.04 重启没有ubuntu引导项解决办法
- SVN 1.7 在Ubuntu12.04LTS上编译安装