LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-22-2005, 09:47 AM   #1
winterhunter
Member
 
Registered: Oct 2005
Distribution: Ubuntu Edgy
Posts: 58

Rep: Reputation: 15
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!
 
Old 10-22-2005, 12:03 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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.
 
Old 10-22-2005, 03:04 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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.
 
Old 10-23-2005, 05:48 AM   #4
winterhunter
Member
 
Registered: Oct 2005
Distribution: Ubuntu Edgy
Posts: 58

Original Poster
Rep: Reputation: 15
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).
 
Old 10-23-2005, 08:16 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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... ??
 
Old 10-23-2005, 09:45 AM   #6
winterhunter
Member
 
Registered: Oct 2005
Distribution: Ubuntu Edgy
Posts: 58

Original Poster
Rep: Reputation: 15
I'm using rpm-packages to install.
 
Old 10-23-2005, 10:22 AM   #7
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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
 
Old 10-24-2005, 05:37 AM   #8
winterhunter
Member
 
Registered: Oct 2005
Distribution: Ubuntu Edgy
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks a lot!
 
  


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
Linking program with .a libraries rudy2 Programming 2 04-22-2005 06:36 AM
Linking Libraries, Dependencies Killbot_5000 Linux - Software 4 09-28-2004 09:59 AM
Shared libraries and linking., devin Programming 3 04-08-2003 04:18 PM
Linking to shared libraries? Griffon26 Programming 1 10-20-2001 06:29 PM
linking with shared libraries kobilevi Programming 0 03-01-2001 11:09 AM


All times are GMT -5. The time now is 08:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration