Re: [LIP] Problem executing scripts Bad Interpreter
"Sridhar R" <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
The bad interpretor may also be caused due to trying to execute a script that contains DOS style newlines. Try dos2unix filename > filaname and then executing `filename` [email protected] said: > Hi, > >> "-bash: ./configure: /bin/bash: bad interpreter: Permission denied" >> >> with "/bin/bash" and also "/usr/bin/env python". I have checked the >> file >> permissions to be executable by all. The strange thing is that I am able >> to run the script by saying "python <scriptname>" and not by >> ./scriptname(for the python script containing #!/usr/bin/env python at >> the > > Can you check if you have a Unix '\n' at the end of the first shebang line > and > not something else like a Windows '\r\n'? > > I have personally seen this 'bad interpreter' error because of this. > > > Hope this helps, > Swaroop > www.python.g2swaroop.net > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > linux-india-programmers mailing list > linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/linux-india-programmers > /----------------------------------------------| | R. Sridhar | | Blog: http://cs.annauniv.edu/~rsridhar/blog/ | |----------------------------------------------/ ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click