LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linking old libraries to new one? (http://www.linuxquestions.org/questions/linux-software-2/linking-old-libraries-to-new-one-375741/)

winterhunter 10-22-2005 08:47 AM

Linking old libraries to new one?
 
Dear all,

It has happened to me lots of times that a piece of software demands for an older version of a library than the one I have installed. For example, xine asks for:
libMagick.so.6
libWand.so.6

I have both libraries, but on version 9:
libMagick.so.9
libWand.so.9

Is there any way to "force" the soft to use the new ones (I've tried creating links with the "ln" command inside of /usr/lib, but to no avail), or do I have to install the older versions?

Thanks!

trickykid 10-22-2005 11:03 AM

If a program needs the older library, forcing it would be like trying to force feed a snake that only eats rodents fruit, it's not going to happen.

Your best option is to install the older dependencies for the best support.

foo_bar_foo 10-22-2005 02:04 PM

there may be rare instances where all the symbols needed by the older program are represented in the newer library in which case yes a tricky subversive link will work.

winterhunter 10-23-2005 04:48 AM

The problem is that usually the new library is needed by lots of other libs/application, so when I try to install the older rpm, well, I just get lots of errors.

Is there any way to work around this problem? (besides uninstalling everything).

trickykid 10-23-2005 07:16 AM

Quote:

Originally posted by winterhunter
The problem is that usually the new library is needed by lots of other libs/application, so when I try to install the older rpm, well, I just get lots of errors.

Is there any way to work around this problem? (besides uninstalling everything).

How are you installing? RPM, Debian, From Source... ??

winterhunter 10-23-2005 08:45 AM

I'm using rpm-packages to install.

trickykid 10-23-2005 09:22 AM

Quote:

Originally posted by winterhunter
I'm using rpm-packages to install.
Use the force and no deps option to install since it will complain about dependencies, etc.

rpm -ivh --nodeps --force <rpm-package-name>.rpm

winterhunter 10-24-2005 04:37 AM

Thanks a lot!


All times are GMT -5. The time now is 12:19 AM.