One first download arm-none-linux-gnueabi-gcc Cross compiler, according to different needs please at the URL:
Download the required code in the Https://launchpad.net/gcc-arm-embedded/+download
Two create a directory by extracting the command
TAR-JXVF gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
Unzip the file, and then
Use the command: VIM/HOME/XXXX/.BASHRC edit the. bashrc file to add environment variables.
In the file, add the last line:
export PATH=$PATH:/home/XXXX/arm/arm-linux-gcc-4.9.3/bin
Last executed: SOURCE/ETC/BASH.BASHRC
Three because the 64-bit run 32 compiler is missing the corresponding library file, so the runtime will error
./ARM-NONE-EABI-GCC
BASH:./arm-none-eabi-gcc:no such file or directory
Run the following command to load the library file:
sudo apt-get install lib32ncurses5 lib32z1
It shows that the installation was successful,
Four reference documents
1 http://blog.csdn.net/xie0812/article/details/52672687
Ubuntu 16.04 64-bit installation ARM-NONE-LINUX-GNUEABI-GCC steps and problem solving