bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

Status
Not open for further replies.

ashkan_ed

Member level 1
Joined
Jan 2, 2008
Messages
33
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,466
Hi
when I want to execute a configure file, following error occurs,

bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

what should I do to remove this error ?
 

config file must be in UNIX format and not DOS. Command "file configure" should tell you if configure is in UNIX format.
 

Hi, ashkan_ed!

If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g".
 
Reactions: Fernes

    Fernes

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…