I am installing MOOG, and when I make -f Makefile.maclap
I get the error:
$ make -f Makefile.maclap
g77 -w -c -o Abfind.o Abfind.f
make: g77: No such file or directory
make: *** [Abfind.o] Error 1
After research online, I think that, since I have gcc-5, the command g77 doesn't exist on my computer.
So I used, based on a stack exchange question, alias g77=/usr/local/bin/gfortran-5
to try to compile the fortran code with gfortran.
Now, when I g77
I see gfortran-5: fatal error: no input files compilation terminated
, indicating that g77
is working as a compiled.
But when I make -f Makefile.maclap
I still get the error:
$ make -f Makefile.maclap
g77 -w -c -o Abfind.o Abfind.f
make: g77: No such file or directory
make: *** [Abfind.o] Error 1
How can I get the make command to use fortran-5 to compile the file Abfind.o and Abfind.f?
How can I successfully complete the make
and make install
steps to get this software package running?