我在Mac OS X El Capitan上。我有gcc。使用自制软件安装R
后 - brew install r
我无法使其正常运行。这是我得到的错误:
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgfortran.3.dylib
Referenced from: /usr/local/Cellar/r/3.3.0_1/R.framework/Versions/3.3/Resources/lib/libR.dylib
Reason: image not found
Trace/BPT trap: 5
当我查看文件夹时,我发现只有一个gcc - 5.即
$ ls /usr/local/opt/gcc/lib/gcc
5
如何判断R使用上面的gcc而不是在6中查找?
答案 0 :(得分:1)
这是对我有用的黑客:
make a directory named 6
copy everything from 5 to 6
It worked smoothly after that.