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

Mon Jul 27 13:20:12 UTC 2009
James Pearson <james-p at moving-picture.com>

Dave wrote:
> Installing matlab on Centos5.
> 
> command I typed:
> 
> /media/MATHWORKS_R2009A/install &
> 
> Error message I received:
> [1] 10759
> [root at taro matlab]# bash: /media/MATHWORKS_R2009A/install: /bin/sh:
> bad interpreter: Permission denied
> 
> Google found no hits with this precise error message, but several
> similar hits when I leave out the matlab path.
> 
> Solution:
> 
> mount -o remount -o exec /dev/scd0
> 
> (scd0 is the drive where the DVD is inserted.)
> 
> Hope this helps someone with the same problem.

You could have probably run the script using:

sh /media/MATHWORKS_R2009A/install

James Pearson