软件包"RCurl"的安装退出状态为非零 [英] installation of package ‘RCurl’ had non-zero exit status
问题描述
我正在尝试在OS X 10.12.6上安装RCurl,但是出现以下错误:
I am trying to install RCurl on OS X 10.12.6 but get the following error:
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不相关.我确实尝试安装Homecbrew版本的curl
,但这并没有帮助
This error has been discussed a bit already, but the solutions are all specific to linux and I don't think they are relevant to OS X. I did try installing the homebrew version of curl
but that didn't help.
有什么想法吗?我认为更多的调试信息会有所帮助,但是我不确定还可以提供什么.
Any ideas? I think that more debugging information would be helpful, but I'm not sure what else to provide.
提前谢谢! 尼克
推荐答案
看起来像您的@rpath
中的libcurl.4.dylib
.
我认为其他人也遇到了相同的问题,因此解决方案应该在此处的某个位置:
I think others have encountered the same issue so the solution should be in here somewhere:
-
brew unlink R
解决方案 - 再次安装curl
这篇关于软件包"RCurl"的安装退出状态为非零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!