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?
# 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?
ASKER
It does exist, but I'll try it anyhow.
Then do
which libImlib2.so.1
to check.
which libImlib2.so.1
to check.
ASKER
[root@localhost ~]# which libImlib2.so.1
/usr/bin/which: no libImlib2.so.1 in (/usr/local/jdk1.5.0_02/bi n:/usr/loc al/jdk1.5. 0_02/bin:/ usr/kerber os/sbin:/u sr/kerbero s/bin:/usr /local/sbi n:/usr/loc al/bin:/sb in:/bin:/u sr/sbin:/u sr/bin:/us r/X11R6/bi n:/root/bi n)
It appears its not picking up /usr/local/lib
/usr/bin/which: no libImlib2.so.1 in (/usr/local/jdk1.5.0_02/bi
It appears its not picking up /usr/local/lib
ASKER
(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.s o.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?
I added /usr/local/lib to my PATH and now get:
[root@localhost ~]# which libImlib2.so.1
/usr/local/lib/libImlib2.s
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.
rpm -ivh <package name>.rpm
and post the exact error here so people here can more details to understand your issue.
ASKER
[root@localhost Desktop]# rpm -ivh imlib2-loader_argb-1.2.0.0 07-1.20050 508.e17.fc 3.i386.rpm
error: Failed dependencies:
libImlib2.so.1 is needed by imlib2-loader_argb-1.2.0.0 07-1.20050 508.e17.fc 3.i386
[root@localhost Desktop]#
error: Failed dependencies:
libImlib2.so.1 is needed by imlib2-loader_argb-1.2.0.0
[root@localhost Desktop]#
Could do
rpm -qa |grep 0i imlib
to see if you have any previous version of imlib2?
rpm -qa |grep 0i imlib
to see if you have any previous version of imlib2?
ASKER
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...
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
rpm -qa |grep -i imlib
ASKER
[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]#
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I had to add the jpeg and png loaders to that but it worked! Points inc... and thank you. /pat on back
If not, then comment out
#include ld.so.conf.d/*.conf
in /etc/ld.so.conf
and run
rm /etc/ld.so.cache
ldconfig