最近要玩一些新包胧卤,需要在4.0以上版本的R 里面跑悼沈,需要source安裝包“Matrix”块请,各種報錯奠支。
make: *** [Matrix.so] Error 1
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
以為是gcc安裝的位置不對窿给,環(huán)境變了,以為要重新編寫config
參考
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Using-gcc
仔細(xì)看完https://cloud.r-project.org/率拒,才發(fā)現(xiàn):
Important:?this release uses Xcode 10.1 and GNU Fortran 8.2. If you wish to compile R packages from sources, you will need to download and GNU Fortran 8.2 - see the?tools?directory.
當(dāng)時想吐血崩泡。安裝完gfortran,順利安裝猬膨,耗時3小時允华。
https://github.com/fxcoudert/gfortran-for-macOS/releases
要認(rèn)真讀書。