On Sat, Jul 25, 2009 at 2:32 AM, Davetdbtdb+centos@gmail.com wrote:
Installing matlab on Centos5. [root@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.