1. 下载压缩包
文件分享
2. 新建目录并解压
3. 配置环境变量
sudo gedit /etc/bash.bashrc
添加路径并更新路径:(PATH=$PATH之间无空格)
PATH=$PATH:/×××/linaro-arm/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/binexport PATH
source /etc/bash.bashrc
4.安装运行依赖库
sudo apt-get install lib32ncurses5 lib32z1sudo apt-getinstall lib32stdc++6
5.测试
arm-linux-gnueabihf-gcc –v
运行成功,完毕!