/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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like