LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-14-2004, 03:37 AM   #1
Janneman
Member
 
Registered: May 2004
Distribution: Fedora Core 6
Posts: 36

Rep: Reputation: 15
Updating libraries


When I want to install a new version of some library with rpm on RedHat 7.1 (which I need for some other software), I sometimes get the message that the older version of the library is still needed by some programs.

For example, when I type:

rpm -F openssl-0.9.6b-8.i386.rpm

I get messages, such as:

libcrypto.so.1 is needed by bind-utils-9.1.0-10
libcrypto.so.1 is needed by slrn-0.9.6.4-2
libcrypto.so.1 is needed by cyrus-sasl-1.5.24-17
etc.

A newer version of libcrypto.so is in the package openssl-0.9.6b-8.i386.rpm.
If I force installation, will bind-utils, slrn and cyrus-sasl still work?

How to handle this? Can I install two versions of the same library or are libraries always backwards compatible?

Best wishes,
Janneman
 
Old 10-15-2004, 07:11 AM   #2
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
No, they won't work anymore, because the run-time linker would fail to find libcrypto.so.1, where the 1 is a library interface version.

Btw, using --force is inherently dangerous. It's a collection of options actually. Look it up in the manual. It would also overwrite existing files from other packages. Even --nodeps is a risk already.

If you repackaged and rebuilt the library, you could install them in different locations and use them at the same time.
 
Old 10-16-2004, 04:30 AM   #3
Janneman
Member
 
Registered: May 2004
Distribution: Fedora Core 6
Posts: 36

Original Poster
Rep: Reputation: 15
I ran 'yum update' on RedHat 7.1, but it took too long and I killed it.
Now rpm won't run anymore, giving the error message:

rpm: error while loading shared libraries: librpm-4.2.so: cannot load shared object file: No such file or directory

yum doesn't work either: 'yum update rpm' results in:

Traceback (innermost last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "yummain.py", line 21, in ?
File "clientStuff.py", line 22, in ?
ImportError: librpm.so.0: cannot load shared object file: No such file or directory

I also cannot login anymore on KDE (GNOME still functions).
How can I install rpm or yum without using rpm or yum?

Janneman.
 
Old 10-16-2004, 04:53 AM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Yum cannot damage your system like that unless you configured incompatible repositories and started to upgrade to something which messed up your system. It sounds much as if you interrupted yum during an upgrade.

You need to boot the first installation CD with "linux rescue" and then use the rescue mode's working version of rpm to over-install the rpm package into your mounted system. Use rpm's --root parameter to point rpm to the mount point. If that is not enough of a hint, get back with details in case you have questions.

Once rpm is working again, you can chroot into the mounted system and take a look at: rpm --query --all --last | less

I bet you've upgraded lots of packages and moved your installation into an unusable state.

Btw, Red Hat Linux 7.1 is out-of-date and fully unsupported. The oldest Red Hat Linux which is still supported by Fedora Legacy is Red Hat Linux 7.3.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Libraries hemmelig *BSD 3 04-19-2005 06:47 PM
Updating libraries Janneman Red Hat 2 10-14-2004 12:45 PM
Need help about libraries russoue Linux - Software 7 10-09-2004 08:24 AM
Updating Libraries Maeveth Linux - Software 2 08-01-2004 06:50 PM
updating libraries, etc befuddled Linux - Newbie 1 02-03-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration