Libicu and stringi on Fedora 24 causing R headaches

I recently upgraded to F24, and now in my R session I can’t download multiple packages, sp. reshape2, latex2exp, knitr, etc.

The initial problem I discovered was that F24 uses libicu56, while these packages expect libicu54. I followed this thread 's suggestion to establish symbolic links with the correct version:

ln -s /usr/lib64/libicui18n.so.56 /usr/lib64/libicui18n.so.54    
ln -s /usr/lib64/libicuuc.so.56 /usr/lib64/libicuuc.so.54
ln -s /usr/lib64/libicudata.so.56 /usr/lib64/libicudata.so.54

This initial error has disappeared, but now I have this:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
   unable to load shared object '/home/uname/R/x86_64-redhat-linux-gnu-library/3.3/stringi/libs/stringi.so':
  /home/uname/R/x86_64-redhat-linux-gnu-library/3.3/stringi/libs/stringi.so: undefined symbol: _ZTIN6icu_548ByteSinkE

This leads me to the stringi package for R, but I cannot load it - it gives the same error.

I also updated F24 and all R packages.

Any ideas?

+4
source share
2 answers

icu (Gentoo). - stringi, , .

remove.packages('stringi')
install.packages('stringi')

.Rprofile library(stringi), R --vanilla, .

--disable-pkg-config . stringi build icu , ( icu).

+1

stringi Fedora 24, tar.gz CRAN, :

R CMD INSTALL stringi_1.1.1.tar.gz --configure-args='--disable-pkg-config'
+3

Source: https://habr.com/ru/post/1651469/


All Articles