[R-SIG-Mac] Problems updating RCurl on Yosemite
M. Henry Linder
mhlinder at gmail.com
Tue Jun 16 02:09:20 CEST 2015
I have R 3.1.0 installed on my computer, and at some point in the past had successfully installed RCurl (1.95-4.3). However, I am now unable to update RCurl, and in spite of my best efforts at googling, I can’t seem to get things working.
The error I receive is
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/local/Cellar/r/3.1.0/R.framework/Versions/3.1/Resources/library/RCurl/libs/RCurl.so':
dlopen(/usr/local/Cellar/r/3.1.0/R.framework/Versions/3.1/Resources/library/RCurl/libs/RCurl.so, 6): Library not loaded: libcurl.4.dylib
Referenced from: /usr/local/Cellar/r/3.1.0/R.framework/Versions/3.1/Resources/library/RCurl/libs/RCurl.so
Reason: image not found
It seems likely that R is looking to the system curl:
$ which curl
$ curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
I have tried installing curl from Homebrew (version 7.42.1) and setting LDFLAGS and CPPFLAGS (and LIBCURL_CFLAGS and LIBCURL_LIBS) to point to this version of curl, to no avail.
I’m unsure if there is a way to set these build flags from within R; is that a possible fix? Thank you for any advice you can offer!
[[alternative HTML version deleted]]
More information about the R-SIG-Mac