I. Establishment of cross-compiling environment arm-linux-gcc-2.95.3
1.download 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
1.download arm-linux-gcc-3.4.1.tar.bz2
Ftp://ftp.handhelds.org/projects/toolchain/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://blog.chinaunix.net/u/6979/showart_1097939.html