1
我在R v3.4 MacOS sierra中安裝samr
軟件包時遇到問題。我收到此警告消息:在R 3.4中安裝samr
"Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘samr’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘samr’
trying URL 'https://cran.rstudio.com/src/contrib/samr_2.0.tar.gz'
Content type 'application/x-gzip' length 36702 bytes (35 KB)
==================================================
downloaded 35 KB
* installing *source* package ‘samr’ ...
** libs
gfortran -fPIC -g -O2 -c rankcol.f -o rankcol.o
make: gfortran: No such file or directory
make: *** [rankcol.o] Error 1
ERROR: compilation failed for package ‘samr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/samr’
Warning in install.packages :
installation of package ‘samr’ had non-zero exit status
有沒有人有辦法解決這個問題?
這意味着你需要gfortran編譯器。 – Consistency
你可以試試:https://gcc.gnu.org/wiki/GFortranBinaries – Consistency
請參閱:https://cran.r-project.org/bin/macosx/tools/ – MrFlick