LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem in installing Mathematica 5.2 on FC5 (https://www.linuxquestions.org/questions/linux-software-2/problem-in-installing-mathematica-5-2-on-fc5-539575/)

somitras 03-22-2007 04:39 AM

Problem in installing Mathematica 5.2 on FC5
 
I have been trying to install Mathematica 5.2 on Fedora Core 5.

On using the bash shell -
$ ./MathhInstaller
bash: ./MathInstaller: /bin/sh: bad interpreter: Permission denied

Therefore I changed to csh, now it goes like this -
$ cd /media/MATHEMATICA/Unix/Installer/
$ ./MathhInstaller
./MathInstaller: Permission denied.

The same thing happens whether I am su or normal user. Could anyone please help me with this problem.
Thanks a lot.

MensaWater 03-22-2007 09:07 AM

bad interpreter would indicate a problem with the very first line of the file.

Correct interpreter line syntax should be something like:

#!/bin/sh
OR
#!/bin/csh
OR
#!/bin/bash
OR
#!/usr/local/bin/perl

The "#!" are REQUIRED.

You can not typically use the csh in place of sh/bash. The scripting language for csh is completely different. The same is true of perl.

PTrenholme 03-22-2007 09:19 AM

In FC6 (and, I suspect, FC5) /bin/sh is just a symbolic link to /bin/bash. You might check to see if it's set that way in your /bin directory.


All times are GMT -5. The time now is 03:05 AM.