Dave
2009-Jul-25 01:32 UTC
[CentOS] install DVD mounted -noexec by default == bad interpreter permission denied
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. Dave -- ???????????????????????- Q: Why should this email be 5 sentences or less? A: http://five.sentenc.es IPRC-help FAQ: https://wailua/wiki/index.php/Faq
James Pearson
2009-Jul-27 13:20 UTC
[CentOS] install DVD mounted -noexec by default == bad interpreter permission denied
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
Hakan Koseoglu
2009-Jul-27 15:01 UTC
[CentOS] install DVD mounted -noexec by default == bad interpreter permission denied
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 deniedSometimes 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