QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1177|回复: 5

求助:交叉编译器安装出错问题!!

[复制链接]
发表于 2005-3-23 00:15:00 | 显示全部楼层 |阅读模式
我刚学不久,在安装arm-elf-tools-20030314.sh 时试了几次都不成!
[root@localhost xjh]# ls
arm-elf-tools-20030314.sh  Desktop  evolution  m68k-elf-tools-20030314.sh  skyeye-binary-testutils-1.0.4.tar.bz2  testsuits
[root@localhost xjh]# bash ./arm-elf-tools-20030314.sh
: command not found30314.sh: line 2:
'/arm-elf-tools-20030314.sh: line 4: syntax error near unexpected token `in
'/arm-elf-tools-20030314.sh: line 4: `case "${SCRIPT}" in
[root@localhost xjh]# bash arm-elf-tools-20030314.sh
: command not found314.sh: line 2:
'rm-elf-tools-20030314.sh: line 4: syntax error near unexpected token `in
'rm-elf-tools-20030314.sh: line 4: `case "${SCRIPT}" in
[root@localhost xjh]# sh arm-elf-tools-20030314.sh
: command not found314.sh: line 2:
'rm-elf-tools-20030314.sh: line 4: syntax error near unexpected token `in
'rm-elf-tools-20030314.sh: line 4: `case "${SCRIPT}" in
[root@localhost xjh]# ./arm-elf-tools-20030314.sh
: bad interpreter: 没有那个文件或目录in/sh未命名 1

谁帮帮我啊!!
发表于 2005-3-24 06:28:50 | 显示全部楼层
I met similar problem before. In my case, it was since the script file is DOS format, you need use dos2unix command to covert it back to unix format.
回复

使用道具 举报

 楼主| 发表于 2005-3-24 10:42:50 | 显示全部楼层
能说的具体点不,我还是不知道怎么做!谢了!

另外我用的是FC1,换redhat9能解决不?
回复

使用道具 举报

 楼主| 发表于 2005-3-25 00:26:04 | 显示全部楼层
是这样弄吗? 可我还是不行啊!!
[root@localhost xjh]# dos2unix arm-elf-tools-20030314.sh
dos2unix: converting file arm-elf-tools-20030314.sh to UNIX format ...
[root@localhost xjh]# ./arm-elf-tools-20030314.sh
bash: ./arm-elf-tools-20030314.sh: 权限不够
[root@localhost xjh]# sh arm-elf-tools-20030314.sh

gunzip: stdin: invalid compressed data--format violated

快帮帮我,好郁闷啊!!
回复

使用道具 举报

 楼主| 发表于 2005-3-25 00:33:56 | 显示全部楼层
How to know the script file's format?
回复

使用道具 举报

 楼主| 发表于 2005-3-28 12:30:50 | 显示全部楼层
问题已经解决!!在这谢谢CaiQiang提醒了!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 01:55 , Processed in 0.044196 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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