Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu 13.04 安装 GCC 4.8.1

终于有了完整实现C++11的GCC 4.8.1.给自己的系统升级吧。下面的步骤可以在Ubuntu 13.04下安装GCC 4.8.1,sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install gcc-4.8
sudo apt-get install g++-4.8
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++sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade最后用gcc --version检查一下,果然是4.8.1.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.推荐阅读:Ubuntu 12.04嵌入式交叉编译环境arm-linux-GCC搭建过程图解 http://www.linuxidc.com/Linux/2013-06/85902.htmUbuntu 12.10安装交叉编译器arm-none-linux-gnueabi-GCC  http://www.linuxidc.com/Linux/2013-03/82016.htmUbuntu下Vim+GCC+GDB安装及使用 http://www.linuxidc.com/Linux/2013-01/78159.htmUbuntu下两个GCC版本切换 http://www.linuxidc.com/Linux/2012-10/72284.htm更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2VMware克隆CentOS6.4后 eth0无法初始化/找不到eth0的问题Eclipse 创建并运行Maven Web项目相关资讯      Ubuntu 13.04  GCC4.8 
  • GCC4.8对new和delete的参数匹配新  (02/15/2015 10:40:00)
  • 修改 Ubuntu 13.04 LAMP 服务器端  (01/17/2014 09:23:08)
  • 简单5步隐藏Ubuntu 13.04 Unity 启  (10/09/2013 21:18:31)
  • Ubuntu 13.04/CentOS 6.4 下C++开  (01/24/2014 11:02:05)
  • Ubuntu 13.04 无法安装Chrome浏览  (12/16/2013 08:39:03)
  • Ubuntu 13.04下使用PPA 安装  (09/30/2013 20:24:54)
本文评论 查看全部评论 (0)
表情: 姓名: 字数