linux可执行文件bad interpreter解决方法
来源:互联网 发布:迅龙数据软件注册码 编辑:程序博客网 时间:2024/05/21 16:22
linux可执行文件bad interpreter解决方法
经常会遇到这种情况,在windows下写的脚本,代码会在linux下无法执行,错误就是:
: bad interpreter: No such file or directory
以前一直不知怎么解决,今天终于找到方法了。
1 原因
这通常都是由于windows下对文本文件的保存格式与unix下不同造成的,windows下回车的字符是’\r\n’,而linux下是’\n’。
2 解决方法
vi file
在命令模式下,输入 :set ff?
查看文件格式为dos或者unix
:set ff=unix
:wq
保存退出,即可。
转自:http://doc.chinaunix.net/linux/201009/869759.shtml- linux可执行文件bad interpreter解决方法
- linux可执行文件bad interpreter解决方法
- ^M: bad interpreter:解决方法
- Linux 下执行指令出现“bad interpreter”错误的解决方法
- Linux 下执行指令出现“bad interpreter”错误的解决方法
- Linux 下执行指令出现“bad interpreter”错误的解决方法
- sh^M:bad interpreter:解决方法
- linux可执行文件错误:异常/bin/sh^M: bad interpreter: No such file or dire
- /bin/sh^M: bad interpreter的解决方法
- /bin/sh^M: bad interpreter的解决方法
- CentOS /bin/bash^M: bad interpreter解决方法
- linux shell编程:/bin/bash^M bad interpreter:没有那个文件或目录解决方法
- Linux执行shell出现错误bad interpreter: No such file or directory解决方法
- linux shell编程:/bin/bash^M bad interpreter:没有那个文件或目录解决方法
- arm-linux交叉编译bad ELF interpreter
- bad interpreter: No such file or directory 解决方法
- bad interpreter: 没有那个文件或目录 解决方法
- CentOS6 Shell脚本/bin/bash^M: bad interpreter错误解决方法
- 安装dedeeims Deprecated: Function ereg_replace() is deprecated in
- MySQL建表出错
- linux下安装后缀为bin的Java JDK
- HDU--4018(Parsing URL)
- REST是什么
- linux可执行文件bad interpreter解决方法
- Extjs TreePanel Reload()方法 ,该怎么处理
- 关于const变量
- gwt服务端怎么获得前台表单中的数据
- CTreeCtrl图标使用方法 ---两种图标切换选中与未选中
- iphone上传文件到php做的服务器的有关问题
- 约瑟夫环解法(1)
- Linux 系统进程的五种状态
- lua_call的使用