[R] error installing RCurl in SUSE SLES10-SP2

Robert Castelo robert.castelo at upf.edu
Tue Jun 9 11:14:05 CEST 2009


thanks Duncan, i've updated it and it works now. since it did not
complain about version numbers, i did not think that was the problem.
i'll take care about it next time.

robert.

On Fri, 2009-06-05 at 13:35 -0700, Duncan Temple Lang wrote:
> Hi Robert
> 
>   As Brian Ripley wrote in a message to the list earlier today,
> you will want a more recent version of libcurl.
> RCurl can be easily made to check the availability of all the different
> options to handle old versions of libcurl, but this slows down the
> installation for everyone. But more importantly, it is advisable
> to update curl to avoid some security issues in older versions
> and to access the improvements.
> 
>    D.
> 
> 
> Robert Castelo wrote:
> > dear list,
> > 
> > i'm trying to install the package RCurl into a linux system running SUSE
> > Linux Enterprise Server 10 SP2 but i get compilation errors which i
> > guess should be due to some missing additional software. i've been
> > searching about the R-help archives without success so i hope somebody
> > can point me out to this missing piece.
> > 
> > in principle, i have the necessary curl software installed:
> > 
> > $ rpm -qa | grep curl
> > curl-7.15.1-19.11
> > curl-devel-7.15.1-19.11
> > curl-32bit-7.15.1-19.11
> > 
> > however as you'll see below, when i try to install it from R the
> > compilation breaks. i've included at the end also the sessionInfo()
> > output (it's R-2.9.0). i've also tried to install a newer version of
> > RCurl (0.98) which i found in http://www.omegahat.org/RCurl but it gives
> > the same errors.
> > 
> > thanks!
> > robert.
> > 
> >> install.packages("RCurl", repos="http://cran.r-project.org")
> > trying URL 'http://cran.r-project.org/src/contrib/RCurl_0.97-3.tar.gz'
> > Content type 'application/x-gzip' length 1437829 bytes (1.4 Mb)
> > opened URL
> > ==================================================
> > downloaded 1.4 Mb
> > 
> > * Installing *source* package 'RCurl' ...
> > checking for curl-config... /usr/bin/curl-config
> > checking for gcc... gcc
> > checking for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables... 
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ANSI C... none needed
> > checking how to run the C preprocessor... gcc -E
> > Version has a libidn field
> > Version has CURLOPT_URL
> > 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.
> > No CURLOPT_USE_SSL enumeration value.
> > No CURLOPT_TIMEOUT_MS enumeration value.
> > No CURLOPT_CONNECTTIMEOUT_MS enumeration value.
> > No CURLOPT_HTTP_TRANSFER_DECODING enumeration value.
> > No CURLOPT_HTTP_CONTENT_DECODING enumeration value.
> > No CURLOPT_NEW_FILE_PERMS enumeration value.
> > No CURLOPT_NEW_DIRECTORY_PERMS enumeration value.
> > No CURLOPT_POSTREDIR enumeration value.
> > No CURLOPT_SSH_HOST_PUBLIC_KEY_MD enumeration value.
> > No CURLOPT_OPENSOCKETFUNCTION enumeration value.
> > No CURLOPT_OPENSOCKETDATA enumeration value.
> > No CURLOPT_COPYPOSTFIELDS enumeration value.
> > No CURLOPT_PROXY_TRANSFER_MODE enumeration value.
> > No CURLOPT_SEEKFUNCTION enumeration value.
> > No CURLOPT_SEEKDATA enumeration value.
> > No CURLOPT_CRLFILE enumeration value.
> > No CURLOPT_ISSUERCERT enumeration value.
> > No CURLOPT_ADDRESS_SCOPE enumeration value.
> > No CURLOPT_CERTINFO enumeration value.
> > No CURLOPT_USERNAME enumeration value.
> > No CURLOPT_PASSWORD enumeration value.
> > No CURLOPT_PROXYUSERNAME enumeration value.
> > No CURLOPT_PROXYPASSWORD enumeration value.
> > No CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 enumeration value.
> > No CURLOPT_NOPROXY enumeration value.
> > No CURLOPT_TFTP_BLKSIZE enumeration value.
> > No CURLOPT_SOCKS5_GSSAPI_SERVICE enumeration value.
> > No CURLOPT_SOCKS5_GSSAPI_NEC 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/cursos/MBI/soft/R/R-2.9.0/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 base64.c -o base64.o
> > gcc -std=gnu99 -I/cursos/MBI/soft/R/R-2.9.0/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 curl.c -o curl.o
> > curl.c:553: warning: 'struct curl_certinfo' declared inside parameter
> > list
> > curl.c:553: warning: its scope is only this definition or declaration,
> > which is probably not what you want
> > gcc -std=gnu99 -I/cursos/MBI/soft/R/R-2.9.0/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 curlInit.c -o curlInit.o
> > gcc -std=gnu99 -I/cursos/MBI/soft/R/R-2.9.0/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 curl_base64.c -o curl_base64.o
> > gcc -std=gnu99 -I/cursos/MBI/soft/R/R-2.9.0/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:136: error: 'CURLOPT_LOCALPORT' undeclared here (not in a
> > function)
> > CURLOptTable.h:137: error: 'CURLOPT_LOCALPORTRANGE' undeclared here (not
> > in a function)
> > CURLOptTable.h:138: error: 'CURLOPT_CONNECT_ONLY' undeclared here (not
> > in a function)
> > CURLOptTable.h:139: error: 'CURLOPT_CONV_FROM_NETWORK_FUNCTION'
> > undeclared here (not in a function)
> > CURLOptTable.h:140: error: 'CURLOPT_CONV_TO_NETWORK_FUNCTION' undeclared
> > here (not in a function)
> > CURLOptTable.h:141: error: 'CURLOPT_CONV_FROM_UTF8_FUNCTION' undeclared
> > here (not in a function)
> > CURLOptTable.h:142: error: 'CURLOPT_MAX_SEND_SPEED_LARGE' undeclared
> > here (not in a function)
> > CURLOptTable.h:143: error: 'CURLOPT_MAX_RECV_SPEED_LARGE' undeclared
> > here (not in a function)
> > CURLOptTable.h:144: error: 'CURLOPT_FTP_ALTERNATIVE_TO_USER' undeclared
> > here (not in a function)
> > 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)
> > In file included from CurlInfoEnums.h:33,
> >                  from enums.c:80:
> > CURLINFOTable.h:29: error: 'CURLINFO_LASTSOCKET' undeclared here (not in
> > a function)
> > CURLINFOTable.h:29: error: initializer element is not constant
> > CURLINFOTable.h:29: error: (near initialization for
> > 'CurlInfoNames[28].val')
> > CURLINFOTable.h:30: error: 'CURLINFO_FTP_ENTRY_PATH' undeclared here
> > (not in a function)
> > CURLINFOTable.h:30: error: initializer element is not constant
> > CURLINFOTable.h:30: error: (near initialization for
> > 'CurlInfoNames[29].val')
> > make: *** [enums.o] Error 1
> > ERROR: compilation failed for package 'RCurl'
> > * Removing '/cursos/MBI/soft/R/R-2.9.0/lib64/R/library/RCurl'
> > 
> > The downloaded packages are in
> >         '/tmp/Rtmpk36vv0/downloaded_packages'
> > Updating HTML index of packages in '.Library'
> > Warning message:
> > In install.packages("RCurl", repos = "http://cran.r-project.org") :
> >   installation of package 'RCurl' had non-zero exit status
> >> sessionInfo()
> > R version 2.9.0 (2009-04-17) 
> > x86_64-unknown-linux-gnu 
> > 
> > locale:
> > C
> > 
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  methods
> > base     
> > 
> > loaded via a namespace (and not attached):
> > [1] tools_2.9.0
> > 
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list