s-u / Cairo

R graphics device using cairo graphics library for creating high-quality output
12 stars 10 forks source link

Issue with libicuuc.so.58 #45

Closed elia427 closed 9 months ago

elia427 commented 9 months ago

Hi,

Installing this in apptainer container - RedHat-7. If install ICU, it will mess up my system. How can i solve this?

` building package indices testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘Cairo’: .onLoad failed in loadNamespace() for 'Cairo', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/mnt/users/xx/R/library-4.3/00LOCK-Cairo/00new/Cairo/libs/Cairo.so': libicuuc.so.58: cannot open shared object file: No such file or directory Error: loading failed Execution halted ERROR: loading failed

The downloaded source packages are in ‘/tmp/RtmpvNqztt/downloaded_packages’ Warning message: In install.packages("Cairo", repo = "https://RForge.net", lib = "/mnt/users/xx/R/library-4.3") : installation of package ‘Cairo’ had non-zero exit status`

s-u commented 9 months ago

You are missing necessary run-time libraries. Please contact your system administrator.

elia427 commented 9 months ago

I am the system administrator for my own container :-) For anyone who encountered similar issue, this is how i solved it:

# install ICU - needed to install Cario R package
  wget https://github.com/unicode-org/icu/archive/release-58-3.tar.gz && tar xvzf release-58-3.tar.gz && cd icu-release-58-3/icu4c/source && ./configure && make && make install