/Usr/Local/Bin/Gfortran: Command Not Found

/Usr/Local/Bin/Gfortran: Command Not Found

I'm getting the an error /usr/local/bin/gfortran: Command not found when I go to the source directory and put the command make like shown below.

~/Desktop/someprogram/source$ make

Please help with this.

****/usr/local/bin/gfortran -c -O2 Mad_He.f90
make: /usr/local/bin/gfortran: Command not found
Makefile:117: recipe for target 'Mad_He.o' failed
make: *** [Mad_He.o] Error 127****
4

1 Answer

Thanks all, it seems that I have a fix. I found that the makefile contained in the source folder of the tar file had a different target path

-> usr/local/bin/gfortran

whereas gfortran on my Ubuntu was located in

-> usr/bin/gfortran

So I just deleted the "local/" in the makefile and the program worked perfect!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.