On Mon, Jul 27, 2009 at 4:01 PM, Hakan Koseogluhakan@koseoglu.org wrote:
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.
Please ignore my advice here, it's irrelevant and I should have read the message properly the first time!