Can't find library.
Jerome Miecznikowski
miecznik-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Fri Aug 20 20:03:41 UTC 2004
On 20-Aug-04, at 3:40 PM, Jerome Miecznikowski wrote:
> filename. Rename the file and everything works. Well, the right
> thing to do is to fix the build, but I'll do that later :)
Hm, I should be a bit clearer about the hack, in case someone else runs
into this problem. Just renaming the file won't work on it's own.
What you have to do is make a hard link:
ln libBadName.1.1.1 libFoo.so
Now, ldconfig will read libFoo.so and put it in it's cache. But not
quite: it'll use libFoo.so's internal SONAME string "libBadName.1.1.1"
as the key instead of the filename "libFoo.so". So now your cache will
hold:
libBadName.1.1.1 (libc6) => /path/to/libBadName.1.1.1
... which is what you wanted.
Jerome
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list