Reputation: 1043
My issue is this:
Rigth now i have R 3.2 wooden xmas tree version, but theres some packages I need that dosent work on this version, so when i try to install the newest version, with
./configure
It returns the next error
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
I have a package called libcurl3
installed. And its already in the last version.
Ill appreciate any help.
Note: I'm using Ubuntu based Peppermint 7 OS
Upvotes: 30
Views: 33132
Reputation: 676
Ubuntu 22.04 My PATH looked liked this.
/srv/conda/condabin:/srv/conda/envs/notebook/bin:/srv/conda/bin:/srv/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
The libcurl in conda env was causing multiple problems while building R from source. First error was that there was a header mismatch with ICU. conda had ICU vrs 75 while libcurl that R was using had ICU vrs 70. Second problem was the https issue.
I solved with these lines. CURL_CONFIG is a R build env variable.
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
CURL_CONFIG=/usr/bin/curl-config
Before running the make command for R building from source. The CURL_CONFIG was needed because even after setting LD_LIBRARY_PATH,
which curl
showed /usr/bin/curl
while
which curl-config
showed /srv/conda/envs/notebook/bin/curl-config
Awful.
Upvotes: 0
Reputation: 93
I encountered the same solution with conda environment activated. After I deactivate the environment, I succeed. So before ./configure, just:
conda deactivate base
./configure
Upvotes: 3
Reputation: 1079
Supposing that you have a sudo privileges, run the following command to download the latest version of libcurl
sudo apt-get install libcurl4-openssl-dev
Upvotes: 1
Reputation: 11
I solved my problem like this:
Upvotes: 1
Reputation: 1205
In my case, it was due to libcurl installed in anaconda2 package, whose libcurl version did not support https.
I removed the path to anaconda2 from PATH variable, and it was all fixed.
Upvotes: 15
Reputation: 720
I had the same problem on centos 7. I fixed it by installing the libcurl-devel
. The mistake I had made was that I just had libcurl
installed and not it's development packages.
Upvotes: 5
Reputation: 137
I had the same problem on Ubuntu 16.04LTS. Unfortunately installing libcurl4-openssl-dev did not solve the issue. However, installing libcurl4-gnutls-dev did work.
Upvotes: 2
Reputation: 11
I had the similar problem. First, you need to look into the config.log file to find out the real error. For example, mine is shown as:
/usr/include/string.h:548:5: error: unknown type name '__locale_t' __locale_t __loc)
Which would be a problem due to the gcc I used. Then you can solve the problem based solving this issue, in my case, change another version of gcc works for me.
Upvotes: -1
Reputation: 344
I had similar problem, and I solve it by installing libcurl4-openssl-dev. This is one of packages, which R could use (R manual https://cran.r-project.org/web/packages/curl/index.html)
Upvotes: 32