Can't find library.
Jerome Miecznikowski
miecznik-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Fri Aug 20 14:23:56 UTC 2004
On 20-Aug-04, at 10:23 AM, Peter L. Peres wrote:
> Minimum permissions for library are r not rx. Did you run ldconfig
> after make install ? parted should only be used by root anyway, the
> binary and library permissions may reflect this.
Whoops, my mistake about the permission ... sorry Taavi.
> ldd `which parted`
>
> and see that the library is where ldd says it's looking for it. Did
> you install it by hand or did you use the original install script ?
Ok, for the checklist: installed with 'make install', checked
permissions on the lib, ran ldconfig (as root), ran parted as root, ldd
still reports:
libparted-1.6.12 => not found
Hm, two things I should add are that there are no spurious environment
variables that I'm setting and that libparted is the only lib in
/usr/local/lib (/etc/ld.so.conf does contain /usr/local/lib) A quick
peek with objdump also shows that no path is specified for the lib in
parted.
It seemed the problem is likely that the dynamic linker just isn't
looking at /usr/local/lib ... so I ran strace on konsole to watch
something that works with a non-standard lib location (/opt tree) ...
and found that on my system, for konsole the linker is using the
ld.so.preload but not ld.so.cache. And it works. But if I run strace
on parted, it uses the ld.so.cache, and doesn't search on *any*
location from /etc/ld.so.conf ... At this point I regenerated the
ld.so.cache file again, but no change.
Again, any thoughts?
--
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