P
P
Pavel K2016-11-06 23:47:37
ubuntu
Pavel K, 2016-11-06 23:47:37

How to register dependencies only for a specific library, without adding them to LD_LIBRARY_PATH, ldconfig, etc.?

Greetings!
Several programs are installed on the system that need library A, which depends on library B of version X ,
and several other programs are installed on the system that need the same library A, which depends on library B, but version Y
, of course, either works alone, or others, when adding one or another to ldconfig :D
I managed to make the programs, each from different places, load library A (provided in the software configuration), but these A, of course, require each version of B
, and that's just not possible to do so that they load their version B - you have to write it in LD_LIBRARY_PATH (or put the path in ld.so.conf.d *.conf, not the point)
The question is how to explicitly set for *.so file what path to look for dependencies?
PS Yes, I know that before starting the program, you can put env LD_LIBRARY_PATH=... but this is not suitable. these programs are launched through other programs and in general xs how this shit is arranged there, and it also depends on the architecture as a bonus and is generally used on thick clients:
D through ldd libA.so just asks for libB.so (would ask libB.so.2.1 there would be no problems)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2016-12-04
@PavelK

In general, hellish crutch - hexEditor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question