How to update RCurl and curl to the version on the host machine?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

How to update RCurl and curl to the version on the host machine?



Initially I was trying to use devtools::install_github("EdwinTh/padr") where I got the following error:


devtools::install_github("EdwinTh/padr")



Error in curl::new_handle() : An unknown option was passed in to libcurl


Error in curl::new_handle() : An unknown option was passed in to libcurl



After some time I found out that devtools uses curl/RCurl which wraps the current version of curlon the host machine.


devtools


curl/RCurl


curl



The host(Ubuntu 14.04.5 LTS) machine version of curl is:


curl



1$ curl -V
curl 7.61.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.0.1f zlib/1.2.8 libssh2/1.8.0 librtmp/2.3


1$ curl -V
curl 7.61.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.0.1f zlib/1.2.8 libssh2/1.8.0 librtmp/2.3



where curlis located in:


curl



12$ which curl
/usr/local/bin/curl


12$ which curl
/usr/local/bin/curl



and is working fine when using curl::new_handle()directly from the terminal


curl::new_handle()



In comparison the curl/RCurl version is:


curl/RCurl


> RCurl::curlVersion()
$age
[1] 3

$version
[1] "7.35.0"`



I'm assuming that this might be the underlying issue. My problem now is how to let Rs curl/RCurl point to the corresponding version.


curl/RCurl



I have tried everything I found so far on that topic for R like:


R



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


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


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



as well as adjusting curlon the host machine:


curl


wget https://libssh2.org/download/libssh2-1.8.0.tar.gz
tar zxvf llibssh2-1.8.0.tar.gz
cd libssh2-1.8.0
./configure
make
sudo make install

wget http://curl.haxx.se/download/curl-7.61.0.tar.gz
tar zxvf curl-7.61.0.tar.bz2
cd curl-7.61.0
./configure --with-libssh2=/usr/local
make
sudo make install



But I always get the same version for curl/RCurl 7.35.0 instead of 7.61.0.


curl/RCurl



Appreciate any insights!





For starters, you could consider not being on a four-year old release of your distro. With Ubuntu 18.04 you have no such problem. But in short: update the libcurl*-dev package (complications: there are several) and the reinstall RCurl and/or curl.
– Dirk Eddelbuettel
45 mins ago



libcurl*-dev


RCurl


curl





Hi @DirkEddelbuettel there are some restrictions hindering to upgrade Ubuntu. But anyway, thanks for taking time to give your opinion. libcurl*-dev was already installed. So basically I removed it and reinstalled sudo apt-get install libcurl4-openssl-dev as well as those two packages without any change in the behaviour.
– Mamba
33 mins ago


libcurl*-dev


sudo apt-get install libcurl4-openssl-dev





If you tell Ubuntu to install from 14.04 it will of install the same package over and over. That is what sticking with a release means. Your problem, in essence, is to figure out where to get a newer curl library built for that release from. And/or how to tell the R packages how to prefer the local one.
– Dirk Eddelbuettel
6 mins ago










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

Executable numpy error

Trying to Print Gridster Items to PDF without overlapping contents

Hystrix command on request collapser fallback