本文介绍了如何获得RCurl以连接到OS X Yosemite上的POST SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从升级到OS X Yosemite 10.10.2以来,我一直无法使用RCurl通过SSL发送POST.我收到的错误消息是:

Since upgrading to OS X Yosemite 10.10.2, I have been unable to use RCurl to send POSTs via SSL. The error message I get is:

Error in function (type, msg, asError = TRUE) :
    SSLRead() return error -9806

这非常类似于此处的卷曲错误: osx 10.10将URL POST发送到HTTPS URL会导致SSLRead()错误

This strongly resembles the curl error here: osx 10.10 Curl POST to HTTPS url gives SSLRead() error

因此,按照该问题的答案,我运行了通过自制程序安装libcurl的说明,但是我不知道如何将RCurl链接到新的libcurl. curl-config仍会返回旧版本的libcurl.

So I ran the instructions to install libcurl via home-brew, per the answers on that question, but I cannot figure out how to link RCurl to the new libcurl. curl-config still returns the old installation of libcurl.

> packageVersion("RCurl")
[1] ‘1.95.4.5’

> version
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 1.2
year 2014
month 10
day 31
svn rev 66913
language R
version.string R version 3.1.2 (2014-10-31)
nickname Pumpkin Helmet

推荐答案

想通了!

首先,我从自制软件安装了brew:

First, I installed brew from homebrew:

brew install --with-libressl curl

然后,我复制了curl-config:

Then, I copied the curl-config in place:

sudo cp /usr/bin/curl-config /usr/bin/curl-config.bak
sudo cp /usr/local/opt/curl/bin/curl-config /usr/bin/curl-config

然后,我重新安装了RCurl:

Then, I reinstalled RCurl:

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

它再次起作用.

这篇关于如何获得RCurl以连接到OS X Yosemite上的POST SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 18:53