分类: LINUX
2014-08-06 10:13:17
ubuntu 系统下安装gcc 4.4的最好方法是仅用以下两条命令:
sudo apt-get install gcc-4.4
sudo apt-get install g++-4.4
操作过程见:
gcc降级:
sudo rm -rf /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
gcc -v
g++降级
sudo rm -rf /usr/bin/g++
sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++
g++ -v
编译android ,还需安装
sudo apt-get install g++-multilib
sudo apt-get install libc6-dev
ia32-libs lib32ncurses5-dev x11proto-core-dev libx11-dev
lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev mingw32 tofrodos
python-markdown libxml2-utils
sudo apt-get install g++-4.4-multilib