LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1006|回复: 4

交叉编译环境安装不上,为什么?

[复制链接]
发表于 2007-5-11 15:50:41 | 显示全部楼层 |阅读模式
我的笔记本用的是fedora 6,我打算向里安装arm机的编译环境,文件是arm-elf-tools-20030314.sh。但是安装不上,请高手分析一下原因。下面是我打的命令,这是什么原因?(uClinux-040408-hzh.tar.bz2、arm-elf-tools-20030314.sh在/home/hyb/ucdrag目录下存放)
[root@localhost home]# ls
cvtech  fedora core 6安装包  hyb  ucdrag
[root@localhost home]# cd ucdrag/
[root@localhost ucdrag]# ls
arm-elf-tools-20030314.sh  uClinux-040408  uClinux-040408-hzh.tar.bz2
[root@localhost ucdrag]# sh ./arm-elf-tools-20030314.sh
tail: 无法打开 “+43” 读取数据: 没有那个文件或目录

gunzip: stdin: not in gzip format
[root@localhost ucdrag]#
发表于 2007-5-11 17:22:47 | 显示全部楼层
arm-elf-tools-20030314.sh脚本处理解压的部分有误.tail的使用方法改过了,这个脚本使用的是2003年的tail命令,

使用vi或者其它文本编辑器打开arm-elf-tools-20030314.sh修改tail命令的参数.应该是"tail -n 43",而不是"tail +43"
回复 支持 反对

使用道具 举报

发表于 2007-5-14 21:49:48 | 显示全部楼层
它怎么又说

gunzip: stdin: not in gzip format
回复 支持 反对

使用道具 举报

发表于 2007-5-15 21:42:28 | 显示全部楼层
这样好像就行了
# cat arm-elf-tools-20030314.sh | sed '1,42d' | gunzip | tar xvf -
回复 支持 反对

使用道具 举报

发表于 2007-5-15 21:50:37 | 显示全部楼层
这样好像就行了
# cat arm-elf-tools-20030314.sh | sed '1,42d' | gunzip | tar xvf -
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表