[R-pkg-devel] R-devel installation and libcurl

Martyn Plummer plummerm at iarc.fr
Fri Oct 16 18:33:44 CEST 2015


On Fri, 2015-10-16 at 21:46 +1100, Jim Lemon wrote:
> Hi,
> I have been attempting to install R-devel to check updated packages for
> CRAN. After reading the relevant section in R Installation and
> Administration, searching and a lot of unsuccessful fiddling with
> "configure", I thought I might as well ask.
> 
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Fedora 21 (Twenty One)
> 
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
>  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
> 
> configure hits the wall when checking for libcurl. I installed libcurl
> v7.37.0 and while it is recognized, I have not succeeded in getting it to
> find curl.h (it's in /usr/include/curl/curl.h). R Installation ahd
> Administration seems to suggest that the path information should be put in
> MkRules.local. However, that file is nowhere to be found. Neither can I
> find any variable in "configure" that specifies where to look for curl.h.
> 
> I'm sure that this is very simple, but if anyone can provide a method to
> stop the:
> 
> ...
> checking curl/curl.h usability... no
> checking curl/curl.h presence... no
> checking for curl/curl.h... no
> configure: error: libcurl >= 7.28.0 library and headers are required with
> support for https
> 
> error I would be most grateful.

This may be a little bit off topic for this list, since it is not an
issue with your package, but I'll try to answer anyway.

The header file /usr/include/curl/curl.h is provided by both the 32-bit
and 64-bit versions of libcurl-devel. I can reproduce your error if I
have libcurl-devel.i686 installed (which provides the header) but not
libcurl-devel.x86_64 (which is needed to compile the 64-bit version of
R). This gives me the following output:

checking for curl-config... /usr/bin/curl-config
checking libcurl version ... 7.37.0
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
configure: error: libcurl >= 7.28.0 library and headers are required
with support for https

Martyn

> Jim
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

-----------------------------------------------------------------------
This message and its attachments are strictly confidenti...{{dropped:8}}



More information about the R-package-devel mailing list