I cannot compile - bash: ./configure: /bin/sh: bad interpreter: Permission refused

Nils Kassube kassube at gmx.net
Mon Nov 10 06:33:43 UTC 2008


Manuel Gómez wrote:
> Hi, i would like install Xnee 3.02 but when i type "./configure" says
> "bash: ./configure: /bin/sh: bad interpreter: Permission refused". The
> readme says that it must  be installed by typing configure, make, and
> make install.

Just a wild guess: You can try to change the configure script. Replace 
every instance of "/bin/sh" with "/bin/bash".

And here is an explanation why that might work. In Ubuntu, /bin/sh really 
is dash instead of bash. Dash is sh compliant like bash but it is faster 
and it doesn't have the bash extensions.

Some scripts use bash specific syntax even though they don't use /bin/bash 
but /bin/sh because /bin/sh has been bash on many (all?) Linux systems 
for a long time. That is a fault of the script because it should really 
use /bin/bash if it needs the bash syntax.


Nils




More information about the ubuntu-users mailing list