0

I am a beginner in Linux. I have a Fortran code that I can run it in my own server,but when the same package is copied to an other server,it is not work.

in my server i type this in terminal program:

sami@sami-VGN-CS118E:~/Downloads/softwares/eerad3$ ./eerad3 -i eerad3.input

in my server i have installed Fortran compiler,so the program is worked.

the other server i write:

root@debian7-virtual:/home/softwares/eerad3# ./eerad3 -i eerad3.input

and i got:

-bash: ./eerad3: No such file or directory

at first i thought maybe its due of Fortran compiler,so i type:

root@debian7-virtual:/home/softwares/eerad3# sudo apt-get install g77

but again i got:

-bash: sudo: command not found

the problem isn't due to $ and #?

2
  • With ./eerad3 you go to execute the command eerad3 in the present directory. Are you sure that you are in the correct directory?
    – Hastur
    Dec 1, 2014 at 8:35
  • Close voters: This is not off-topic! The question is about running software on Ubuntu, not programming.
    – Seth
    Dec 10, 2014 at 20:37

1 Answer 1

0

When your shell shows # that means you are already privileged and do not need to sudo. If you are non-privileged yet, you can use sudo but you have to install sudo first using apt-get install sudo (as privileged).

2
  • The use of "#" in the root prompt is the default, but you cannot be sure only from that... you can use whoami (all in one word), id -u or echo $EUID (the last two answer 0 if you are root).
    – Hastur
    Dec 1, 2014 at 8:31
  • seems it is due of use of root (instead of sudo apt get install, i should use apt get install)and also,i had to install make command,and then use it.i found out in server B,no command installed.
    – samira
    Dec 3, 2014 at 4:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .