First you need to download arm-linux-gcc installation package
Here a version 5.4.0 installation package, if necessary, to download.
Download Link: https://pan.baidu.com/s/12yrcQkjD87ank5iIy4PizA extraction code: See comments on this section
installation steps
The highest authority in order to operate in the / usr folder
sudo su
Created under / usr / local a new folder and give it the highest authority
mkdir ARM-Linux-gcc
chmod 777 ARM-Linux-gcc
The arm-linux-gcc 5.4.0 install package to the arm-linux-gcc folder
cp arm-linux-gcc-5.4.0.tar.gz / usr / local / arm-linux-gcc
Extracting
tar xzvf arm-linux-gcc- 5.4.0.tar.gz
There will be a new folder named folder after extracting 5.4.0
Modify the configuration file / etc / profile
Add this phrase to the end of the profile file
export PATH = / usr / local / arm-linux-gcc / 5.4.0 / bin: $ PATH
更新
source /etc/profile
Check whether the successful installation
echo $ PATH
If the word /usr/local/arm-linux-gcc/5.4.0/bin appears, the installation was successful. You can also use
arm-linux-gcc -v
To view the version information.