Tuesday, September 29, 2009

sh^M: bad interpreter: No such file or directory


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

Problem is that we r trying to run script saved in dos format at some point.
Convert this to unix by using dos2unix

dos2unix is contained in package tofrodos

sudo apt-get install tofrodos
dos2unix configure

It will (attempt) to convert this/these files properly to a use-able format

No comments:

Post a Comment