如何修复从源代码在Mac OS X上安装RCurl的错误:找不到“ curl / curl.h”文件

时间:2019-10-18 10:01:31

标签: r curl rcurl

尝试从源代码重新安装RCurl,以便它可以支持sftp(刚刚使用自制软件安装了libssh2):

install.packages("RCurl", type = "source")

然后我得到:

In file included from base64.c:1:
./Rcurl.h:4:10: fatal error: 'curl/curl.h' file not found
#include <curl/curl.h>
         ^~~~~~~~~~~~~
1 error generated.
make: *** [base64.o] Error 1
ERROR: compilation failed for package ‘RCurl’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RCurl’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RCurl’
Warning in install.packages :
  installation of package ‘RCurl’ had non-zero exit status

我尝试使用Google搜索,然后在StackOverflow上进行查找,在Debian,Linux,Ubuntu和Windows上有很多线程,而在Mac OS X上没有很多线程,因此这篇文章。

有什么想法吗?请帮忙。

0 个答案:

没有答案