Taking arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 as an example
1. Get the cross-compilation tool to install. (generally available on chip manufacturers, can also be downloaded by themselves)
2. Using the tar command: Tar jxvf arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 is installed into the current directory (after the tar parameters can be transformed according to the specific compression format)
3. Use Find, pwd to get the installation path
Go to the previous step and unzip the directory using Find to find the bin directory. -name bin. If the following cross-compilation tool is in the bin directory, this is a cross-compilation tool catalog
Perform PWD acquisition path (absolute path) under current directory
Xxx/xxx/software/gcc-3.4.5-glibc-2.3.6/bin
4. Execute sudo vi/etc/profile
Add the path acquired by PWD to the end of the file, save exit
5. Use command: Source/etc/profile make environment variable effective
6, enter the command on the terminal Arm-linux Press the TAB key, you can see that the environment variable setting is successful
7. Take one of the cross-compilation tools to view the installation results arm-linux-gcc-v, as shown below, that the installation was successful.
Linux Installation cross-compilation tool