Installation of RCurl
1
1
Entering edit mode
Haiying.Kong ▴ 110
@haiyingkong-9254
Last seen 5.7 years ago
Germany

I am trying to install RCurl package on R 3.5.0.

Toward end, I get the error message:

** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/icgc/dkfzlsdf/analysis/B240/kong/lib/R/3.5.0/RCurl/libs/RCurl.so':
  libicui18n.so.58: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/icgc/dkfzlsdf/analysis/B240/kong/lib/R/3.5.0/RCurl’
Warning message:
In install.packages("RCurl_1.95-4.11.tar.gz", lib = "/dkfz/analysis/B240/kong/lib/R/3.5.0") :
  installation of package ‘RCurl_1.95-4.11.tar.gz’ had non-zero exit status

 

> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: openSUSE 13.1 (Bottle) (x86_64)

Matrix products: default
BLAS: /usr/lib64/blas/libblas.so.3.4.2
LAPACK: /usr/lib64/lapack/liblapack.so.3.4.2

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       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.0

 

Could someone please help me?

 

 

package installation • 3.3k views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 5 months ago
United States

I downloaded and installed RCurl in two stages

> download.packages("RCurl", "/tmp", repos = BiocInstaller::biocinstallRepos())
> q()
$ cd /tmp
$ tar xzf RCurl_1.95-4.11.tar.gz
$ R CMD INSTALL RCurl

At the very and of the build I saw

gcc -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o RCurl.so base64.o curl.o curlInit.o curl_base64.o enums.o json.o memoryManagement.o myUTF8.o -lcurl -L/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm -Wl,-framework -Wl,CoreFoundation

where -licucore is I guess providing the same functionality as the missing library. I looked at the src/Makevars to see where this library is coming from. I don't see explicit mention of it, but I do see

PKG_LIBS=$(CURL_LIBS) $(shell xml2-config --libs)

and when I execute the shell command

$ xml2-config --libs
-L/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm

I see where the library is coming from. From this I infer that your missing library is due to a mis-configured libxml2, and that you should use your system package manager to re-install libxml2.

I include the details above as possible guidance for trouble-shooting your particular installation.

ADD COMMENT

Login before adding your answer.

Traffic: 542 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6