[R] problem with RCurl install on Unix

Martin Maechler maechler at stat.math.ethz.ch
Thu Mar 22 10:43:43 CET 2007


>>>>> "Steven" == Steven McKinney <smckinney at bccrc.ca>
>>>>>     on Wed, 21 Mar 2007 19:29:43 -0700 writes:

    Steven> I get the same problem, and haven't
    Steven> figured it out yet.

    Steven> Is it a 32bit/64bit clash?

Well, I can install and run  RCurl  on both 32bit and 64bit
(Redhat / FC6  Linux; with own compilers, extra libs, ...).

    Steven> (Similarly, I don't have RMySQL up and running cleanly.)




    >> library(RCurl)
    Steven> Error in dyn.load(x, as.logical(local), as.logical(now)) : 
    Steven> unable to load shared library '/share/apps/R/R-2.4.1/library/RCurl/libs/RCurl.so':
    Steven> libcurl.so.4: cannot open shared object file: No such file or directory
    Steven> Error: package/namespace load failed for 'RCurl'

You might need to set  LD_LIBRARY_PATH  correctly
before starting R -- typically it would be set the same as it
was when RCurl was installed (which includes a 'configure' !) on
your system?  Or  RCurl's configure is not quite robust enough
and did not check for the presence of a libcurl.so.4

I assume

  ldd /share/apps/R/R-2.4.1/library/RCurl/libs/RCurl.so

also tells about the missing  libcurl.so.4 ?
Make sure you find that (in /usr/lib; /usr/local/lib, ... ?)
and then set your LD_LIBRARY_PATH
or even   'ldconfig' as root to make sure that libcurl.so.4 ``is
found''.
IMO the latter {correct ldconfig call / /etc/ld.so.conf setup}
should have happened as part of the installation of the curl
library.

On the 64-bit architecture, note that

 > system(paste("ldd", dir(system.file("libs", package = "RCurl"), full=TRUE)))

finds all libraries in /lib64 and /usr/lib64 .


Martin Maechler, ETH Zurich


    >> sessionInfo()
    Steven> R version 2.4.1 (2006-12-18) 
    Steven> x86_64-unknown-linux-gnu 

    Steven> locale:
    Steven> LC_CTYPE=en_US.iso885915;LC_NUMERIC=C;LC_TIME=en_US.iso885915;LC_COLLATE=en_US.iso885915;LC_MONETARY=en_US.iso885915;LC_MESSAGES=en_US.iso885915;LC_PAPER=en_US.iso885915;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.iso885915;LC_IDENTIFICATION=C

    Steven> attached base packages:
    Steven> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"  
    Steven> [7] "base"     

    Steven> other attached packages:
    Steven> DBI 
    Steven> "0.1-12" 
    >> 

    Steven> Steven McKinney

    Steven> Statistician
    Steven> Molecular Oncology and Breast Cancer Program
    Steven> British Columbia Cancer Research Centre

    Steven> email: smckinney at bccrc.ca

    Steven> tel: 604-675-8000 x7561

    Steven> BCCRC
    Steven> Molecular Oncology
    Steven> 675 West 10th Ave, Floor 4
    Steven> Vancouver B.C. 
    Steven> V5Z 1L3
    Steven> Canada




    Steven> -----Original Message-----
    Steven> From: r-help-bounces at stat.math.ethz.ch on behalf of Mark W Kimpel
    Steven> Sent: Wed 3/21/2007 3:09 PM
    Steven> To: r-help at stat.math.ethz.ch
    Steven> Subject: [R] problem with RCurl install on Unix
 
    Steven> I am having trouble getting an install of RCurl to work properly on a 
    Steven> Unix server. The steps I have taken are:

    Steven> 1. installed cUrl from source without difficulty
    Steven> 2. installed RCurl from source using the command
    Steven> ~/R_HOME/R-devel/bin/R CMD INSTALL -l ~/R_HOME/R-devel/library 
    Steven> ~/RCurl_0.8-0.tar.gz     I received no errors during this install
    Steven> 3. when I go back to R and require(RCurl), I get

    >> require(RCurl)
    Steven> Loading required package: RCurl
    Steven> Error in dyn.load(x, as.logical(local), as.logical(now)) :
    Steven> unable to load shared library 
    Steven> '/N/u/mkimpel/BigRed/R_HOME/R-devel/library/RCurl/libs/RCurl.so':
    Steven> libcurl.so.4: cannot open shared object file: No such file or directory
    Steven> °1§ FALSE

    Steven> Outside of R I get

    Steven> mkimpelàBigRed:¨/R_HOME/R-devel/library/RCurl/libs> ls
    Steven> RCurl.so

    Steven> I can cat into RCurl and I have even done chmod a+x RCurl.so in case 
    Steven> there was a problem with permission for R to open the file.

    Steven> Below is my sessionInfo. Thanks, Mark

    >> sessionInfo()
    Steven> R version 2.5.0 Under development (unstable) (2007-03-11 r40824)
    Steven> powerpc64-unknown-linux-gnu

    Steven> locale:
    Steven> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

    Steven> attached base packages:
    Steven> °1§ "stats"     "graphics"  "grDevices" "datasets"  "utils"     "tools"
    Steven> °7§ "methods"   "base"

    Steven> other attached packages:
    Steven> limma      affy    affyio   Biobase
    Steven> "2.9.13" "1.13.14"   "1.3.3" "1.13.39"
    >> 



    Steven> -- 
    Steven> Mark W. Kimpel MD
    Steven> Neuroinformatics
    Steven> Department of Psychiatry
    Steven> Indiana University School of Medicine

    Steven> ______________________________________________
    Steven> R-help at stat.math.ethz.ch mailing list
    Steven> https://stat.ethz.ch/mailman/listinfo/r-help
    Steven> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    Steven> and provide commented, minimal, self-contained, reproducible code.

    Steven> ______________________________________________
    Steven> R-help at stat.math.ethz.ch mailing list
    Steven> https://stat.ethz.ch/mailman/listinfo/r-help
    Steven> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    Steven> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list