0
我試圖在OS X 10.12.6安裝RCurl但出現以下錯誤:安裝包「RCurl」有非零退出狀態
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so':
dlopen(/Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so, 6): Library not loaded: @rpath/libcurl.4.dylib
Referenced from: /Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so
Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/nick/Library/R/3.4/library/RCurl’
The downloaded source packages are in
‘/private/var/folders/hx/9xx9fwq91t95k45dzlmzxfy40000gp/T/Rtmp14zSi1/downloaded_packages’
Warning message:
In install.packages("RCurl") :
installation of package ‘RCurl’ had non-zero exit status
這個錯誤已經討論了一下了,但這些解決方案都是專門針對Linux的,我不認爲它們與OS X相關。我曾嘗試安裝curl
的自制版本,但這並沒有幫助。
任何想法?我認爲更多的調試信息會有所幫助,但我不確定還有什麼可以提供的。
在此先感謝! Nick
謝謝!我可以確認,第一個鏈接解決了它。我取消了鏈接並刪除了R,然後從https://cran.r-project.org/bin/macosx/重新安裝了最新版本 –