文件编码问题导致 ./configure : /bin/sh^M : bad interpreter

来源:互联网 发布:淘宝直通车 医疗器械 编辑:程序博客网 时间:2024/05/21 17:01
[root@localhost lpng142]# ./configure
bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
[root@localhost lpng142]# 

To fix, open your script with vi or vim and enter in vi command mode (key ESC), then type this:

:set fileformat=unix

Finally save it

:x! or :wq!


http://stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter
0 0