Ask Your Question

Install old versions of libraries systemwide

asked 2018-01-08 18:13:38 -0500

alfC gravatar image

updated 2018-01-08 18:14:47 -0500

I have a binary that should work in Fedora (compiled for that system), but uses an old version of a system library.

$ ./executable
program.linux-x86_64/2.13.0/linux-x86_64/bin/executable: error while loading shared libraries: cannot open shared object file: No such file or directory

However, Fedora 27 has version 57 of that library,

$ ls -all /usr/lib64/
lrwxrwxrwx. 1 root root 18 Nov  8 07:46 /usr/lib64/ ->

What is the best way to have in my system? can I install (downgrade) to an older version of the library? for example with dnf or set alternatives?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-01-10 13:40:07 -0500

ssieb gravatar image

Assuming you can't recompile the binary, I would suggest putting the old library version in /usr/local/lib64. You can get it by downloading the old rpm and unpacking it with Archive Manager.

edit flag offensive delete link more

Question Tools



Asked: 2018-01-08 18:13:38 -0500

Seen: 427 times

Last updated: Jan 10 '18