'Install R package: library not found for -lgfortran
I am a Windows user. I build my own R package based on Rcpp and RcppArmadillo. I put it on my GitHub, and I install it using the codes:
devtools::install_github("RunzhiZ/asmbPLS")
I and all my friends who use Windows can install it successfully. But all the Mac users have the error message below:
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [asmbPLS.so] Error 1
ERROR: compilation failed for package ‘asmbPLS’
Does anyone have any ideas on this error?
Thanks a lot!!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
