bash: ***No such file or directory问题的解决
2013-09-10 14:14
573 查看
-bash: ***: No such file or directory
这个错误,原因无从找起,只能靠经验
1. bash script出现该错误:
原因:因为script在传输过程中变成了dos格式
Solution: $ dos2unix sheel.sh
2. 在一台新装的机上莫名出现了该错误
Reason: 在一台64位的机器上装了64bit版的ubuntu,使得原来的32bit rpm包不能使用
Description:
把其他机器上的程序copy过来也不能直接用
$ ./gcc
-bash: ./gcc: No such file or directory
$ scp ***tmp/a.out ./
a.out 100% 9037 8.8KB/s 00:00
$ ./a.out
-bash: ./a.out: No such file or directory
After install ia32-libs
$ ./a.out
sync
abc
Solution:
AMD64参考:
http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10 http://www.debian-administration.org/articles/534
这个错误,原因无从找起,只能靠经验
1. bash script出现该错误:
原因:因为script在传输过程中变成了dos格式
Solution: $ dos2unix sheel.sh
2. 在一台新装的机上莫名出现了该错误
Reason: 在一台64位的机器上装了64bit版的ubuntu,使得原来的32bit rpm包不能使用
Description:
把其他机器上的程序copy过来也不能直接用
$ ./gcc
-bash: ./gcc: No such file or directory
$ scp ***tmp/a.out ./
a.out 100% 9037 8.8KB/s 00:00
$ ./a.out
-bash: ./a.out: No such file or directory
After install ia32-libs
$ ./a.out
sync
abc
Solution:
sudo apt-get install ia32-libs
AMD64参考:
http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10 http://www.debian-administration.org/articles/534
相关文章推荐
- 关于解决line 1: #!/bin/bash: No such file or directory的问题
- 今天又学了一招,牛逼!!!解决"-bash:No such file or directory"问题
- 如何恢复误删除的rpm包命令解决-bash: /usr/bin/yum: No such file or directory的问题
- 【解决交叉编译工具链问题】bash: gcc:no such file or directory
- 【解决交叉编译工具链问题】bash: gcc:no such file or directory
- [Linux vim问题解决] -bash: ./script.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
- [解决]/bin/bash^M: bad interpreter: No such file or directory
- 解决cocoapods diff: /../Podfile.lock: No such file or directory以及iOS开发同一应用多环境配置的问题
- Qt4项目迁移Qt5项目一问题解决方法:#include <QtGui/QApplication> ---> No such file or directory
- 真机调试出问题“Could not launch 'app name'”,No such file or directory 的bug解决
- 关于nginx报错/usr/share/nginx/html/jiankongshare" failed (2: No such file or directory)的问题解决
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- 解决 libstdc++.so.5: cannot open shared object file: No such file or directory 问题
- x11/extensions/XShm.h: No such file or directory 问题解决
- 执行脚本出现bin/bash: bad interpreter: No such file or directory的解决办法
- /bin/bash^M: bad interpreter: No such file or directory或: not foundine 1:解决办法
- QT5.0.1在WIN7下 出现QApplication: No such file or directory 问题的解决办法
- -bash: ./mysql: /bin/bash^M: bad interpreter: No such file or directory 完美解决
- -bash: XXX No such file or directory的解决方法
- airflow 解决安装问题 OSError: [Errno 2] No such file or directory