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

Mon Jul 27 15:02:30 UTC 2009
Hakan Koseoglu <hakan at koseoglu.org>

On Mon, Jul 27, 2009 at 4:01 PM, Hakan Koseoglu<hakan at koseoglu.org> wrote:

> 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.

Please ignore my advice here, it's irrelevant and I should have read
the message properly the first time!

-- 
Hakan (m1fcj) - http://www.hititgunesi.org