安装配置arm-linux-gcc
来源:网络整理 网络用户发布,如有版权联系网管删除 2018-08-12
下载arm-linux-gcc并解压,把里面的arm文件夹整个cp到/usr/local/
一般是修改profile
1:对于ubuntu中profile是调用/etc/bash.bashrc来运行的
在/etc/bash.bashrc后加上
if [ -d /usr/local/arm ] ; then
PATH=/usr/local/arm/2.95.3/bin:"${PATH}"
fi
2:在Federal下可以vi /etc/profile;在出现pathmunge 的语句段后添加pathmunge /usr/local/arm/2.1.3(版本号)/bin;
然后source /etc/profile更新一下就可以用arm-linux-gcc进行编译了
测试 :
# arm-linux-gcc -v
工具已经安装成功了就会出现相应的版本号!
否则会提示
bash: arm-linux-gcc: command not found
查看评论 回复