本文介绍了./configure :/bin/sh^M : 错误的解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试在我的 fed 12 系统上安装 lpng142.对我来说似乎是个问题.我收到此错误
I've been trying to install lpng142 on my fed 12 system. Seems like a problem to me. I get this error
[root@localhost lpng142]# ./configure
bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
[root@localhost lpng142]#
我该如何解决这个问题?/etc/fstab
文件:
How do I fix this? The /etc/fstab
file:
#
# /etc/fstab
# Created by anaconda on Wed May 26 18:12:05 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=ce67cf79-22c3-45d4-8374-bd0075617cc8 /boot ext4
defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
推荐答案
要修复,请使用 vi 或 vim 打开脚本并进入 vi 命令模式(键 ),然后键入:
To fix, open your script with vi or vim and enter in vi command mode (key ), then type this:
:set fileformat=unix
最后保存
:x!
或 :wq!
这篇关于./configure :/bin/sh^M : 错误的解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!