[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 462
  • Last Modified:

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?
0
jstretch
Asked:
jstretch
  • 7
  • 6
1 Solution
 
wesly_chenCommented:
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
0
 
jstretchAuthor Commented:
It does exist, but I'll try it anyhow.
0
 
wesly_chenCommented:
Then do
which libImlib2.so.1
to check.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
jstretchAuthor Commented:
[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
0
 
jstretchAuthor Commented:
(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?
0
 
wesly_chenCommented:
Please do
rpm -ivh <package name>.rpm
and post the exact error here so people here can more details to understand your issue.
0
 
jstretchAuthor Commented:
[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]#
0
 
wesly_chenCommented:
Could do
rpm -qa |grep 0i imlib
to see if you have any previous version of imlib2?
0
 
jstretchAuthor Commented:
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...

0
 
wesly_chenCommented:
Oops, typo.
rpm -qa |grep -i imlib
0
 
jstretchAuthor Commented:
[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]#
0
 
wesly_chenCommented:
Please download
http://sps.nus.edu.sg/~didierbe/fedora/3/en/i386/RPMS.e17/imlib2-1.2.0.007-1.20050508.e17.fc3.i386.rpm
http://sps.nus.edu.sg/~didierbe/fedora/3/en/i386/RPMS.e17/imlib2-devel-1.2.0.007-1.20050508.e17.fc3.i386.rpm
then
rpm -ivh imlib2-1.2.0.007-1.20050508.e17.fc3.i386.rpm  imlib2-devel-1.2.0.007-1.20050508.e17.fc3.i386.rpm  imlib2-loader_argb-1.2.0.007-1.20050508.e17.fc3.i386.rpm
0
 
jstretchAuthor Commented:
I had to add the jpeg and png loaders to that but it worked! Points inc... and thank you. /pat on back
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now