Install the cross-compiler arm-none-linux-gnueabi-gcc in Ubuntu 12.10
1. Download arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Cp arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2/usr/local/
2. decompress the cross-compilation tool chain
Cd/usr/local/
Tar-jxvf arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
3. Configure Environment Variables
# Vim/etc/bash. bashrc is added at the end
PATH = $ PATH: // usr/local/bin/arm-2009q1/bin
Source/etc/bash. bashrc make it effective immediately
4. Open another terminal
Run arm-none-linux-gnueabi-gcc-v. if the version is displayed, the installation is successful.
Root @ ubuntu:/usr/local/arm-2009q1 # arm-none-linux-gnueabi-gcc-v
Using built-in specs.
COLLECT_GCC = arm-none-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER =/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured: /work/toolchain/build/src/gcc-4.5.1/configure -- build = i686-build_pc-linux-gnu -- host = i686-build_pc-linux-gnu -- target = arm-none-linux-gnueabi -- prefix =/opt/FriendlyARM/toolschain/ 4.5.1 -- with-sysroot =/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root -- enable-versions ages = c, c ++ -- disable-multilib -- with-cpu = arm1176jzf-s -- with-tune = arm1176jzf-s -- with-fpu = vfp -- with-float = softfp -- with-pkgversion = ctng-1.8.1-FA --- bugurl = http://www.arm9.net/-- disable-sjlj-exceptions -- enable-_ cxa_atexit -- disable-libmudflap -- with-host-libstdcxx = '-static-libgcc-Wl, -Bstatic,-lstdc ++, -Bdynamic-lm '-- with-gmp =/work/toolchain/build/arm-none-linux-gnueabi/build/static -- with-mpfr =/work/toolchain/build/ arm-none-linux-gnueabi/build/static -- with-ppl =/work/toolchain/build/arm-none-linux-gnueabi/build/static -- with-cloog =/ work/toolchain/build/arm-none-linux-gnueabi/build/static -- with-mpc =/work/toolchain/build/arm-none-linux-gnueabi/build/static -- with-libelf =/work/toolchain/build/arm-none-linux-gnueabi/build/static -- enable-threads = posix -- with-local-prefix =/opt/FriendlyARM /toolschain/4.5.1/arm-none-linux-gnueabi/sys-root -- disable-nls -- enable-symvers = gnu -- enable-c99 -- enable-long
Thread model: posix
Gcc version 4.5.1 (ctng-1.8.1-FA)
Root @ ubuntu:/usr/local/arm-2009q1 #
If not, run the preceding command to view the restart.