ftn2 发表于 2005-3-23 00:15:00

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

我刚学不久,在安装arm-elf-tools-20030314.sh 时试了几次都不成!
# ls
arm-elf-tools-20030314.shDesktopevolutionm68k-elf-tools-20030314.shskyeye-binary-testutils-1.0.4.tar.bz2testsuits
# 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
# 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
# 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
# ./arm-elf-tools-20030314.sh
: bad interpreter: 没有那个文件或目录in/sh未命名 1

谁帮帮我啊!!

CaiQiang 发表于 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.

ftn2 发表于 2005-3-24 10:42:50

能说的具体点不,我还是不知道怎么做!谢了!

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

ftn2 发表于 2005-3-25 00:26:04

是这样弄吗? 可我还是不行啊!!
# dos2unix arm-elf-tools-20030314.sh
dos2unix: converting file arm-elf-tools-20030314.sh to UNIX format ...
# ./arm-elf-tools-20030314.sh
bash: ./arm-elf-tools-20030314.sh: 权限不够
# sh arm-elf-tools-20030314.sh

gunzip: stdin: invalid compressed data--format violated

快帮帮我,好郁闷啊!!

ftn2 发表于 2005-3-25 00:33:56

How to know the script file's format?

ftn2 发表于 2005-3-28 12:30:50

问题已经解决!!在这谢谢CaiQiang提醒了!
页: [1]
查看完整版本: 求助:交叉编译器安装出错问题!!