You are not logged in.

#1 2025-12-01 02:21:15

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 237
Website

[SOLVED]need to install old library alongside current one

I have an issue with the icu package. Current one is 78.1. I write code with R language, and one package, named stringr, need icu 76. When opening my R shell, i have an error which prevents me to go further without errors. The output of this issue is:

  error: package or namespace load failed for ‘stringr’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/lib/R/library/stringi/libs/stringi.so':
  libicuuc.so.76: cannot open shared object file: No such file or directory
--------------------
ls -al /usr/lib/R/library/stringi/libs/stringi.so
-rwxr-xr-x 1 gabx gabx 5.8M Feb 27  2025 /usr/lib/R/library/stringi/libs/stringi.so*

Is there any clean way to solve this issue, like installing somewhere (maybe in the R library path /usr/lib/R/library/stringi/libs the icu 76 arch package?

Thank you for help.

Last edited by gabx (2025-12-01 03:01:32)

Offline

#2 2025-12-01 02:22:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,351

Re: [SOLVED]need to install old library alongside current one

Rebuild that library against the new icu.

Offline

#3 2025-12-01 02:23:51

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 237
Website

Re: [SOLVED]need to install old library alongside current one

Scimmia wrote:

Rebuild that library against the new icu.

Thank you for your quick answer, but may you please explain me how to do that?

Last edited by gabx (2025-12-01 02:26:04)

Offline

#4 2025-12-01 02:25:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,351

Re: [SOLVED]need to install old library alongside current one

The same way you built/installed it in the first place.

Offline

#5 2025-12-01 02:28:52

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 237
Website

Re: [SOLVED]need to install old library alongside current one

Scimmia wrote:

The same way you built/installed it in the first place.

Well, i don't see what you mean. I install R package from inside R, with

install.packages('stringr')

function. As for arch, i use pacman.
So I don't understand your answer, sorry.
Downgrading the icu package will break too many arch packages

Last edited by gabx (2025-12-01 02:31:38)

Offline

#6 2025-12-01 03:01:11

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 237
Website

Re: [SOLVED]need to install old library alongside current one

I built my R packages from sources against my current icu.78 librairies installed on my arch linux. Et voilà.

Offline

#7 2025-12-01 10:15:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,565

Re: [SOLVED]need to install old library alongside current one

You are aware that there is an stringr in aur ?

Moderator Note
Using a 3rd party manager to manage packages makes them unsupported and related threads will be moved.
Moving to AUR Issues, Discussion & PKGBUILD Requests


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB