在Ubuntu 14.04中安装gcc4.4.7【转】
来源:互联网 发布:mac怎么解压 编辑:程序博客网 时间:2024/06/16 11:13
在Ubuntu 12.04中的默认的GCC版本是4.6。但是这个版本在编译android 4.0源码的时候会出差,下面是安装和设置GCC4.4的方法。
下文来自网络:http://mjanja.co.ke/2012/04/ubuntu-gcc-4-4-considered-harmful/
I’ve been having some problems with Ubuntu 11.10′s default GCC (4.6.2) for some time now. First, I was having problems with self-kang CyanogenMod 9 builds on my Samsung Tab 7 Plus (specifically, adb
I didn’t
It’s pretty easy to do this in Debian-based distros using the alternatives
Install GCC 4.4
First, install GCC 4.4 (and friends):
apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib
Set 4.4 to be the default
Then set 4.4 to be higher priority than 4.6:
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 100update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 50update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 50update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.4 100update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 50
Verify that it has worked:
gcc -vUsing built-in specs.Target: x86_64-linux-gnuConfigured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.6-11ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuThread model: posixgcc version 4.4.6 (Ubuntu/Linaro 4.4.6-11ubuntu2)
Done!
- 在Ubuntu 14.04中安装gcc4.4.7【转】
- 在Ubuntu中编译、安装 gcc4.1.1 过程以及遇到的问题
- 在Ubuntu中编译、安装 gcc4.1.1 过程以及遇到的问题
- Ubuntu 安装GCC4.8
- .ubuntu 10.04 安装 gcc4.6.1
- Ubuntu 13.04 安装 GCC4.8.1
- Ubuntu中编译GCC4.9.0
- [转]Ubuntu 12.04 & 13.04 安装 GCC4.8.1
- Ubuntu14安装gcc4.4.7
- Ubuntu 12.04 安装设置gcc4.4
- Ubuntu 12.04 安装设置gcc4.4
- Ubuntu 12.04 & 13.04 安装 GCC4.8.1
- Ubuntu 12.04 & 13.04 安装 GCC4.8.1
- UBUNTU 12.04下编译安装 GCC4.1.2
- Ubuntu 12.04 安装设置gcc4.4
- 如何在高版本的ubuntu系统里安装gcc4.1.2
- 在cygwin下安装gcc4.0
- 在cygwin下安装gcc4.0zt
- ORACLE中集合操作符union/union all/Intersect/Minus用法
- getUTF8StringFromGBKString
- 浏览器的工作原理:新式网络浏览器幕后揭秘(http://www.kuqin.com/web/20121209/333935.html)
- Listener中引入service
- Windows + MemCached
- 在Ubuntu 14.04中安装gcc4.4.7【转】
- SpringMVC从本地磁盘读取图片显示到JSP页面上
- 扩展Django:实现自己的manage命令
- 黑马程序员——java之集合总结
- 【Java基础专题】编码与乱码
- 九度 题目1006:ZOJ问题
- FFmpeg 获取H264流中的sps pps
- 突然想到Lua中的协程其实是这样的
- 灰度图像--图像增强 直方图均衡化(Histogram equalization)