求助:交叉编译器安装出错问题!!
我刚学不久,在安装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
谁帮帮我啊!! 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. 能说的具体点不,我还是不知道怎么做!谢了!
另外我用的是FC1,换redhat9能解决不? 是这样弄吗? 可我还是不行啊!!
# 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
快帮帮我,好郁闷啊!! How to know the script file's format? 问题已经解决!!在这谢谢CaiQiang提醒了!
页:
[1]