ag88 has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone. I am encountering a problem while trying to install pftools (http://web.expasy.org/pftools/). According to the README file when i type

make all

I get the following error

g77 -O2 -init-local-zero -fno-automatic io.o gtop.f -o gtop make: g77: Command not found make: *** [gtop] Error 127

I checked in yast -> software management -> searching fortran and get the following ticked (which means installed i guess)

gcc-fortran gcc-fortran 32bit gcc-33fortran gcc-33fortran -32bit gcc46-fortran gcc46-fortran-32bit libg2c33 libg2c33-32bit libgfortran46 libgfortran46 32bit libquadmath46 libquadmath46 32bit

gfortran is installed. but still am getting the above error. Can anyone please help me to sort out the erreor in order to install pftools? :(

Replies are listed 'Best First'.
Re: (OT) make: g77: Command not found
by syphilis (Archbishop) on Oct 29, 2013 at 09:34 UTC
    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

      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
Re: (OT) make: g77: Command not found ($path)
by Anonymous Monk on Oct 29, 2013 at 08:18 UTC
    $PATH is path , and if software is marked as installed, but its not in your $path, adjust your $path

    but if software is in your $path, but the required program isn't there, install the missing packages of software

    see also Where should I post X?