[CentOS] install DVD mounted -noexec by default == bad interpreter permission denied

Hakan Koseoglu

hakan at koseoglu.org
Mon Jul 27 15:01:19 UTC 2009


On Sat, Jul 25, 2009 at 2:32 AM, Dave<tdbtdb+centos at gmail.com> wrote:
> Installing matlab on Centos5.
> [root at taro matlab]# bash: /media/MATHWORKS_R2009A/install: /bin/sh:
> bad interpreter: Permission denied
Sometimes this can happen if the file has Windows-style EOLs and the
interpreter /bin/sh is translated as /bin/sh^M
Indeed, on a Centos 5 here, the sh is in /bin/sh so the script
probably should have worked.

Check if that is the case. If so, running dos2unix against the shell
script might solve the problem.
-- 
Hakan (m1fcj) - http://www.hititgunesi.org



More information about the CentOS mailing list