1.Download arm-linux-gcc-4.4.3.tar.gz
http://download.csdn.net/download/jwzhangjie/5183630
2.Create a directory
root@zhangjie:mkdir /usr/local/arm
3.Unzip the file
root@zhangjie:/usr/local/arm: tar xvf arm-linux-gcc-4.4.3.tar.gz
4.Set the environment variable
root@zhangjie:/usr/local/arm# vim /etc/bash.bashrc
In the last line
ARM_GCC=/usr/local/arm/opt/FriendlyARM/toolschain/4.4.3/bin
export PATH=$ARM_GCC:$PATH
root@zhangjie:/usr/local/arm# wq
5.Update environment variable
root@zhangjie:/usr/local/arm#source /etc/bash.bashrc
6.Check the environment variable
root@zhangjie:/usr/local/arm# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1)