LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2009, 12:33 PM   #1
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Rep: Reputation: 15
General Question: Installing rpms


I often run into dependency problems that I don't understand. For example, when I tried to install a vpnc client on my machine:

Code:
# rpm -ivh vpnc-0.5.1-6.fc10.i386.rpm
warning: vpnc-0.5.1-6.fc10.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
        libc.so.6(GLIBC_2.8) is needed by vpnc-0.5.1-6.fc10.i386
        upstart is needed by vpnc-0.5.1-6.fc10.i386
Okay, it needs libc.so.6. But I thought that I have that already:
Code:
# locate libc.so.6
/lib/libc.so.6
/lib/i686/nosegneg/libc.so.6
/lib64/libc.so.6
So, why does that dependency fail? Can someone explain this?
 
Old 10-20-2009, 01:07 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's asking for glibc 2.8, what version do you heave installed? Having that sort of error, I'd wonder if you are actually running fc10 in the first place, but you've kindly neglected to tell us what distro you're running to confirm that either way. if you anre't on fc10 then you should get an RPM for your own distro specifically.
 
Old 10-20-2009, 01:13 PM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Quote:
Okay, it needs libc.so.6. But I thought that I have that already
It might be a version thing.
...your installed glibc vs. the one the rpm expects to see.
and: do you have "upstart"?

There is really nothing more I can say.

[edit] oops - a little late...
 
Old 10-20-2009, 03:03 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
IF YOU ARE USING FEDORA
DO NOT use rpm to install things !!!!
Use yum to install
Code:
su -
yum install vpnc
 
Old 10-20-2009, 03:43 PM   #5
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
This is really meant to be a general installation question and I don't necessarily want help in installing this specific RPM on this specific machine.

Quote:
well that's asking for glibc 2.8, what version do you heave installed?
That's probably my source of confusion. I had assumed that when libraries are named libXXXX.so.NN, where NN is a number, that that number is the version, and that's what determines if it's compatible or whatever. Isn't that generally true of all libraries?

Are you saying that it's possible to have two different libraries named libc.so.6 and each a different version? If so, how can I tell which version my libc.so.6, and in general, which version any library is? How did rpm know that the libc.so.6 that was currently installed wasn't the correct version?
 
Old 10-20-2009, 03:47 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ultimately in this *specific* case you can run "strings /lib/libc.so.6" and it will, or won't, list GLIBC2.8 in the output. You're going about this the wrong way though, get the right package in the first place (you still haven't mentioned what distro you are on), or build from source to make the code take whatever is already there without issue.
 
Old 10-20-2009, 03:51 PM   #7
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
You are correct in that this rpm file is the wrong one for the machine I'm on. I'm on a CentOS 5.x machine, while the rpm file was for a Fedora Core machine. What could I do? There's no equivalent rpm for a CentOS Distro.
 
Old 10-20-2009, 04:06 PM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I think what John VV said about Fedora also applies to you using CentOS.
Use yum to install software.
 
Old 10-20-2009, 04:17 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The RPMForge repo has a Centos Vpnc package.
 
Old 10-20-2009, 05:42 PM   #10
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
ultimately in this *specific* case you can run "strings /lib/libc.so.6" and it will, or won't, list GLIBC2.8 in the output.
Is that really how rpm determines if libc.so.6 is version 2.8 or higher? It seems like such a hack. Surely there is a better way.
 
Old 10-20-2009, 05:44 PM   #11
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
I think what John VV said about Fedora also applies to you using CentOS.
Use yum to install software.
I first tried "yum list | grep -i vpn" and that turned up nothing. So I had to "leave the Reservation". But this thread is really more about resolving library dependencies then it is about installing a VPN client.
 
Old 10-21-2009, 12:32 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I've got a feeling that cmd defaults to checking installed pkgs. You'll need the list available option.
There's a good list of cmds/options here:
http://kbase.redhat.com/faq/docs/DOC-2531
 
Old 10-21-2009, 02:25 AM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Quote:
I first tried "yum list | grep -i vpn" and that turned up nothing.
Quote:
Originally Posted by unSpawn View Post
The RPMForge repo has a Centos Vpnc package.
Quote:
But this thread is really more about resolving library dependencies ...
I think it is more about how rpm works and how it determines, if a package will be fitting into your setup.
The fedora package might even work when you force install it - but rpm of course sees some unmet dependencies and refuses to install.
 
Old 10-21-2009, 02:33 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by sysbox View Post
But this thread is really more about resolving library dependencies then it is about installing a VPN client.
Not really, it appears to be about understand which RPM's are and are not applicable for a given system. Don't try to make a square peg fit a round hole. I'll only go off on pointless tangents about chisels and wood shavings...
 
Old 10-21-2009, 01:24 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a quick google ...
from the CentOS 5 wiki ....
http://wiki.centos.org/HowTos/vpnc
the instructions are on the page!
 
  


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
General Question on Installing Hauppage Video Capture Linux31 Linux - Hardware 0 07-01-2007 09:05 AM
general installing question dbinc Linux - Software 2 03-06-2006 11:31 AM
Installing RPMs NomadABC Fedora 2 01-08-2005 09:28 AM
Problem installing XMMS and rpms in general. remz Linux - Software 3 07-27-2004 12:10 AM
Rpms question suse7.1user Linux - Newbie 1 08-27-2003 05:07 AM

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

All times are GMT -5. The time now is 01:13 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
Open Source Consulting | Domain Registration