[R] Install RCurl in Linux
Duncan Temple Lang
duncan at wald.ucdavis.edu
Sat Jun 6 15:00:04 CEST 2009
Hi
If you are getting exactly the same errors, then it is probable
that your installation of curl-7.19.2 is not taking
effect and the configuration script is still finding the older
version. So you may want to check the output
of
curl-config --version
in the same shell as you issue R CMD INSTALL.
If the new libcurl header files are being used, I doubt
you will get the same errors. So we need to see those also
to be able to assist.
D.
heyi xiao wrote:
>
>
> Thanks Prof. Ripley,
>
> I installed the current version curl-7.19.2, still got the same problem.
>
> I am installing RCurl_0.97-3 and my system is x86_64/CentOS 5.
>
> Looking forward to more suggestions/ideas.
>
>
>
> --- On *Fri, 6/5/09, Prof Brian Ripley /<ripley at stats.ox.ac.uk>/* wrote:
>
>
> From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> Subject: Re: [R] Install RCurl in Linux
> To: "heyi xiao" <xiaoheyiyh at yahoo.com>
> Cc: r-help at r-project.org, duncan at wald.ucdavis.edu
> Date: Friday, June 5, 2009, 1:50 AM
>
> It seems you need a later curl -- 7.15 is rather old (and I think
> incomplete as a version number) and 7.19.5 is current.
>
> It is helpful to tell us what version of packages (here RCurl) you are
> trying to use, as well as your precise OS.
>
> On Thu, 4 Jun 2009, heyi xiao wrote:
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hello all,
> >
> > I had both curl and curl-devel
> > (both 7.15) installed on my x86_64/CentOS machine. However, I
> still got problem
> > when I do
> >
> > R CMD INSTALL RCurl
> >
> > ??
> >
> > Error message below,
> > since library and/or include path is missing. I tried
> >
> > R CMD INSTALL RCurl
> > --configure-args='--libdir=/usr/lib64/??
> > --includedir=/usr/include/'
>
> That should be part of the default paths.
>
> > Same result. Any
> > hint/suggestion would be appreciated.
> >
> > ...
> >
> > No CURLOPT_NOPROXY
> > enumeration value.
> >
> > No
> > CURLINFO_CONDITION_UNMET enumeration value.
> >
> > No
> > CURLINFO_REDIRECT_URL enumeration value.
> >
> > No CURLINFO_CERTINFO
> > enumeration value.
> >
> > No
> > CURLINFO_PRIMARY_IP enumeration value.
> >
> > No
> > CURLINFO_APPCONNECT_TIME enumeration value.
> >
> > No CURLOPT_KEYPASSWD
> > enumeration value.
> >
> > No
> > CURLOPT_DIRLISTONLY enumeration value.
> >
> > No CURLOPT_APPEND
> > enumeration value.
> >
> > No CURLOPT_KRBLEVEL
> > enumeration value.
> >
> > ...
> >
> > Version has
> > CURLOPT_PROTOCOLS
> >
> > Version has
> > CURLOPT_REDIR_PROTOCOLS
> >
> > configure: creating
> > ./config.status
> >
> > config.status:
> > creating src/Makevars
> >
> > ** libs
> >
> > gcc -std=gnu99
> > -I/usr/local/lib64/R/include??
> > -DHAVE_LIBIDN_FIELD=1 -DHAVE_CURLOPT_URL=1 -DHAVE_CURLOPT_PROTOCOLS=1
> > -DHAVE_CURLOPT_REDIR_PROTOCOLS=1 -I/usr/local/include?????? -fpic??
> > -g -O2 -c enums.c -o enums.o
> >
> > In file included
> > from CurlOptEnums.h:10,
> >
> > ???????????????????????????????? from enums.c:79:
> >
> > CURLOptTable.h:145:
> > error: ??CURLOPT_SOCKOPTFUNCTION?? undeclared here (not in a
> function)
> >
> > CURLOptTable.h:146:
> > error: ??CURLOPT_SOCKOPTDATA?? undeclared here (not in a function)
> >
> > CURLOptTable.h:147:
> > error: ??CURLOPT_SSL_SESSIONID_CACHE?? undeclared here (not in a
> function)
> >
> > CURLOptTable.h:148:
> > error: ??CURLOPT_SSH_AUTH_TYPES?? undeclared here (not in a function)
> >
> > CURLOptTable.h:149:
> > error: ??CURLOPT_SSH_PUBLIC_KEYFILE?? undeclared here (not in a
> function)
> >
> > CURLOptTable.h:150:
> > error: ??CURLOPT_SSH_PRIVATE_KEYFILE?? undeclared here (not in a
> function)
> >
> > CURLOptTable.h:151:
> > error: ??CURLOPT_FTP_SSL_CCC?? undeclared here (not in a function)
> >
> > make: *** [enums.o]
> > Error 1
> >
> > ERROR: compilation
> > failed for package ??RCurl??
> >
> > * Removing
> > ??/usr/local/lib64/R/library/RCurl??
> >
> >
> >
> >
> >
> > [[alternative HTML version deleted]]
> >
> >
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> </mc/compose?to=ripley at stats.ox.ac.uk>
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> <http://www.stats.ox.ac.uk/%7Eripley/>
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
>
More information about the R-help
mailing list