LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 11:03 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 02:04 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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, 04: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, 07:16 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 08: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, 09:22 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 04:37 AM   #8
winterhunter
Member
 
Registered: Oct 2005
Distribution: Ubuntu Edgy
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks a lot!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 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