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/' 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]]
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 Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
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@stats.ox.ac.uk> wrote: From: Prof Brian Ripley <ripley@stats.ox.ac.uk> Subject: Re: [R] Install RCurl in Linux To: "heyi xiao" <xiaoheyiyh@yahoo.com> Cc: r-help@r-project.org, duncan@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@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 [[alternative HTML version deleted]]