使用 R 3.2.x (RStudio 0.99.441) 在 mac 10.10.3 上安装 statnet。
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [latentnet.so] Error 1
ERROR: compilation failed for package ‘latentnet’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/latentnet’
Warning in install.packages :
installation of package ‘latentnet’ had non-zero exit status
ERROR: dependency ‘latentnet’ is not available for package ‘statnet’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/statnet’
Warning in install.packages :
installation of package ‘statnet’ had non-zero exit status
我尝试更新 XCode/命令行工具。还尝试不安装依赖项。我已经能够安装其他软件包,例如 ergm 和 sna。
看起来安装正在寻找 GCC 文件夹但没有找到它。
whereis gcc
显示我的 gcc 在 /usr/bin/gcc
看起来安装正在 /usr/local/lib/gcc/ 中寻找它
有没有办法来解决这个问题?