# 更新apt
sudo apt update
sudo apt install build-essential
gcc -v
tar -xvf gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar.xz
/opt/
下sudo ./gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf /opt/
cd /opt/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin
./arm-linux-gnueabihf-gcc -v
sudo vim /etc/profile
# 最后一行添加
export PATH=$PATH:/opt/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin
source /etc/profile
使配置生效 arm-linux-gnueabihf-gcc -v
arm-linux-gnueabihf-gdb -v
错误sudo apt install libncurses5
sudo apt-get install libpython2.7
sudo apt-get install libatlas3-base