Link to home
Start Free TrialLog in
Avatar of jstretch
jstretch

asked on

ldconfig not finding library when installing rpm

FC4T2: I'm trying to install an rpm (simply double clicking in xwin) and I'm getting a 'Package Not Found' error during install sa ying that 'libImlib2.so.1' is not found. (I did run ldconfig)

# more /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib/

# ls -al /usr/local/lib
total 3264
drwxr-xr-x   5 root root    4096 May  9 14:03 .
drwxr-xr-x  21 root root    4096 May  9 10:54 ..
drwxr-xr-x   4 root root    4096 May  6 12:46 imlib2
-rw-r--r--   1 root root 1031728 May  6 13:09 libImlib2.a
-rwxr-xr-x   1 root root     873 May  6 13:09 libImlib2.la
lrwxrwxrwx   1 root root      18 May  6 13:09 libImlib2.so -> libImlib2.so.1.2.0
lrwxrwxrwx   1 root root      18 May  6 13:09 libImlib2.so.1 -> libImlib2.so.1.2.0
-rwxr-xr-x   1 root root  828617 May  6 13:09 libImlib2.so.1.2.0


Do I have the wrong config file? Is it because its a link to the actualy library?
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Does /etc/ld.so.conf.d directory exist on your FC4T2?
If not, then comment out
#include ld.so.conf.d/*.conf
in /etc/ld.so.conf

and run
rm /etc/ld.so.cache
ldconfig
Avatar of jstretch
jstretch

ASKER

It does exist, but I'll try it anyhow.
Then do
which libImlib2.so.1
to check.
[root@localhost ~]# which libImlib2.so.1
/usr/bin/which: no libImlib2.so.1 in (/usr/local/jdk1.5.0_02/bin:/usr/local/jdk1.5.0_02/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

It appears its not picking up /usr/local/lib
(bumping it up to 300)
I added /usr/local/lib to my PATH and now get:

[root@localhost ~]# which libImlib2.so.1
/usr/local/lib/libImlib2.so.1

However I still get the "Package Not Found" message when trying to install this RPM. The library is not getting linked property..corrupt file?
Please do
rpm -ivh <package name>.rpm
and post the exact error here so people here can more details to understand your issue.
[root@localhost Desktop]# rpm -ivh imlib2-loader_argb-1.2.0.007-1.20050508.e17.fc3.i386.rpm
error: Failed dependencies:
        libImlib2.so.1 is needed by imlib2-loader_argb-1.2.0.007-1.20050508.e17.fc3.i386
[root@localhost Desktop]#
Could do
rpm -qa |grep 0i imlib
to see if you have any previous version of imlib2?
I did your rpm qa and about 10 variations with grep and always get:

grep: imlib2: No such file or directory
grep: libimlib2: No such file or directory
grep: libImlib2.so.1: No such file or directory
etc...

Oops, typo.
rpm -qa |grep -i imlib
[root@localhost Desktop]# rpm -qa | grep -i imlib
imlib-devel-1.9.13-24
imlib-1.9.13-24
[root@localhost Desktop]# rpm -qa | grep -i libimlib2
[root@localhost Desktop]# rpm -qa | grep -i libImlib2
[root@localhost Desktop]#
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I had to add the jpeg and png loaders to that but it worked! Points inc... and thank you. /pat on back