Jul 20, 2011 #1 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 ?
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 ?
Jul 20, 2011 #2 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 check these discussions "bad interpreter : no such file or directory" when configure "flex" LFS FAQ ---------- Post added at 16:52 ---------- Previous post was at 16:50 ---------- See this toooo linux - ./configure : /bin/sh^M : bad interpreter - Stack Overflow
check these discussions "bad interpreter : no such file or directory" when configure "flex" LFS FAQ ---------- Post added at 16:52 ---------- Previous post was at 16:50 ---------- See this toooo linux - ./configure : /bin/sh^M : bad interpreter - Stack Overflow
Jul 20, 2011 #3 C cfant Full Member level 3 Joined Apr 4, 2001 Messages 187 Helped 25 Reputation 50 Reaction score 6 Trophy points 1,298 Location California, USA Activity points 1,153 config file must be in UNIX format and not DOS. Command "file configure" should tell you if configure is in UNIX format.
config file must be in UNIX format and not DOS. Command "file configure" should tell you if configure is in UNIX format.
Jul 21, 2011 #4 andre_luis Super Moderator Staff member Joined Nov 7, 2006 Messages 9,646 Helped 1,191 Reputation 2,401 Reaction score 1,219 Trophy points 1,403 Location Brazil Activity points 55,956 You can execute the following line command : dos2unix *.sh +++
Jul 22, 2011 #5 ic_qiand Member level 3 Joined Nov 2, 2010 Messages 57 Helped 13 Reputation 26 Reaction score 13 Trophy points 1,288 Location Coventry UK Activity points 1,575 Hi, ashkan_ed! If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g".
Jul 22, 2011 #6 andre_luis Super Moderator Staff member Joined Nov 7, 2006 Messages 9,646 Helped 1,191 Reputation 2,401 Reaction score 1,219 Trophy points 1,403 Location Brazil Activity points 55,956 ic_qiand said: If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g". Click to expand... At FEDORA, I think it is a legacy command, due was not needed to download it. +++
ic_qiand said: If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g". Click to expand... At FEDORA, I think it is a legacy command, due was not needed to download it. +++