Create an arm-Linux-GCC cross-compiling environment

Source: Internet
Author: User

I. Establishment of cross-compiling environment arm-linux-gcc-2.95.3 cross-2.95.3.tar.bz2
2. Create directory, copy, and decompress
# Cd/usr/local
# Mkdir arm
# Cd arm
Copy cross-2.95.3.tar.bz2 to the current directory
# Tar jxvf cross-2.95.3.tar.bz2
3. Export/usr/local/ARM/2.95.3/bin to the environment variable.
Add Path = $ path:/usr/local/ARM/2.95.3/bin at the end of/etc/profile.
2. Establishment of cross-compiling environment arm-linux-gcc-3.4.1 arm-linux-gcc-3.4.1.tar.bz2
2. Copy and decompress
# Cd/
Copy arm-linux-gcc-3.4.1.tar.bz2 to the root directory.
# Tar jxvf arm-linux-gcc-3.4.1.tar.bz2
3. Export/usr/local/ARM/3.4.1/bin to the Environment Variable
Add Path = $ path:/usr/local/ARM/3.4.1/bin at the end of/etc/profile.
3. Export Environment Variables
1. Use Export Path = $ path:/usr/local/ARM/2.95.3/bin/: (temporarily activated)
2. In your home directory, modify your environment variable: VI ~ /. Bash_profile: add this file to. bash_profile. (It works for a user)
3. Modify the/etc/porfile file, and add export Path = $ path:/usr/local/ARM/2.95.3/bin/: To the end (for all users );
After the file is modified, you can log on again to make the changed environment variable take effect,
Run # source/etc/profile to make the exported environment variables take effect immediately and avoid restarting.

This article is from the chinaunix blog. If you want to view the original text, click:Http://

Related Article

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: 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.