分类: LINUX
2010-09-27 11:16:24
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 XIP and shared lib patches from )
表明arm-elf-开发工具链安装成功。