Reputation: 177
I have an issue on mac os x El Capitan with Xcode 7. I'm using fortran 6.1, downloaded from https://gcc.gnu.org/wiki/GFortranBinaries. I tried degrading to fortran 4.8. but that didn't help me. Following is the error:
installing source package ‘Nepidemic’ ... libs gfortran-4.8 -fPIC -Wall -g -O2 -c random_epi.f95 -o random_epi.o make: gfortran-4.8: No such file or directory make: *** [random_epi.o] Error 1 ERROR: compilation failed for package ‘Epidemic’
Any suggestions? Thanks in advance.
Found one similar issue, Can't find gfortran 4.8 to build package
Upvotes: 2
Views: 4113
Reputation: 1371
Following: Unable to install fortran based packages in R - "gfortran -m32:not found"
I installed gfortran 6.1 from https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
Then, I added the following to the file ~/.R/Makevars within my home directory pointing to my gfortran installation:
F77 = gfortran
FC = gfortran
FLIBS = -L/usr/local/gfortran/lib
Upvotes: 11