in reply to (OT) make: g77: Command not found

gfortran is installed. but still am getting the above error

"gfortran" is not "g77" and you need to work around the mistaken assumption that your fortran compiler is called "g77".

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: (OT) make: g77: Command not found
by ag88 (Novice) on Oct 30, 2013 at 06:15 UTC

    I have installed g77. "which g77" now gives

    "usr/local/bin/g77"

    but when i try to "make all" again its giving error

    g77 -O2 -init-local-zero -fno-automatic io.o gtop.f -o gtop /usr/local/bin/g77: /usr/local/bin/g77: cannot execute binary file make: *** [gtop] Error 126

    I tried running it with sudo as well. The error was

    g77 -O2 -init-local-zero -fno-automatic io.o gtop.f -o gtop f951: error: unrecognized command line option ‘-init-local-zero’ make: *** [gtop] Error 1

    Can anyone please help me to sort it out please? Am just stuck at this point as am also new to opensuse/linux.

      I have installed g77

      Hmmm ... I would probably have gone the other way and tried to make it work with gfortran.
      I'll happily perform dreadful hacks, and the first thing I would've tried is to make a copy of "gfortran" named "g77" and seen how that went.

      Does this link help ?

      Cheers,
      Rob

        How do you make it work with gfortran? can you guide me? Btw "g77 -V" also gives the same error i.e., cannot execute binary". Does it mean I have not installed g77 correctly?