本文主要是介绍安装uclinux开发工具链,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.http://opensrc.sec.samsung.com/download.html下载 arm-elf-tools-20040427.sh,或者http://www.uclinux.org/pub/uClinux/下载arm-elf-tools-20030314.sh
sudo mkdir /usr/local/armtools |
3.拷贝工具链安装文件到/usr/local/armtools下
4.更改工具链到执行权限
sudo chmod +x arm-elf-tools-20040427.sh |
5.执行安装
sudo ./arm-elf-tools-20040427.sh |
可能会出现如下错误
errors:
tail : cannot open `+43' for reading : No such file or directory
gzip:stdin: not in gizp format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
解决方法:
1)打开脚本文件,sudo vi arm-elf-tools-20040427.sh,按下ESC,输入:set nu,显示行号,第39行修改为:tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf
2)在脚本文件arm-elf-tools-20040427.sh插入最后一行,按下ESC,然后输入G,输入o,保存退出
6.重新执行安装,安装完毕后,执行arm-elf-gcc -v,输出Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)
表明arm-elf-开发工具链安装成功。
这篇关于安装uclinux开发工具链的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!