Install the cross-compiler arm-none-linux-gnueabi-gcc in Ubuntu 12.10

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.