Installation steps:
This is the arm-linux-gcc-4.4.3.tar.gz package released by the friendly arm.
First, the compressed package arm-linux-gcc-4.4.3.tar.gz stored in the OPT directory.
Execute decompression command: sudo tar zxvf arm-gcc-4.4.3.tar.gz
Get the directory as follows:
Decompression after the original compressed package can be deleted, extracted after the path is relatively deep, you can change it a little bit.
sudo mv/opt/opt/friendlyarm/toolschain/opt
This way I get the path of the ARM-LINUX-GCC:
/opt/toolschain/4.4.3/bin
Second, configure the system environment variables, add the cross-compilation tool chain path to the environment variable path, so that you can use these tools in any directory.
Use the command: Vim/etc/profile edit the profile file to add environment variables.
Finish saving exit.
Third, use command: Source/etc/profile make environment variable take effect
Iv. Enter the command arm-linux on the terminal and press the TAB key (multiple clicks) to see that the environment variable setting is successful.
V. Input command: ARM-LINUX-GCC–V
It is also possible to have the following error message:/OPT/TOOLSCHAIN/4.4.3/BIN/ARM-LINUX-GCC:
15:exec:/opt/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc:not found
This problem occurs because Ubuntu is 64-bit, and the workaround is to use the command:
sudo apt-get install ia32-libs to install some 32-bit libraries.
Install ARM-LINUX-GCC under Ubuntu