使用R 3.2.x(RStudio 0.99.441)在mac 10.10.3上安裝statnet。安裝Statnet軟件包時出現gcc錯誤
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
表明我的海灣合作委員會是在/ usr/bin中/ GCC
它看起來像安裝是在/ usr/local/lib目錄/ GCC尋找它/
是否有辦法解決這個問題?
我有問題發現2.1.2或2.1.3,你有鏈接嗎?這不是在cran上的「舊」回購。 –
Here:http://cran.rstudio.com/bin/macosx/R-3.1.3-snowleopard.pkg – retrography
這是3.1.3不是2.1.3,是故意的嗎? –