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-21-2009, 02:10 PM   #16
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172

sysbox

The short answer is that rpms are built for a specific distro, version, and arch. You should not(generally) use an rpm that was not built for your specific distro, version, and arch. SOMETIMES you can get away with it. For instance since RHEL/Centos5.X was based on FC6, you can use the vast majority of FC6 rpms on it. However, keep in mind that support for FC6 was dropped several years ago, thus those packages will be dated. In some cases you can grab the source (src) rpms for newer versions (F11, etc) and rebuild them on your system. This also can lead to other dependency issues as newer releases(F11) will quite often have package versions that are not available on RHEL/Centos5.x.
 
Old 10-21-2009, 04:12 PM   #17
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
from the CentOS 5 wiki ....
http://wiki.centos.org/HowTos/vpnc
the instructions are on the page!
That's nice, and I appreciated all the help (really!). But that isn't why I created this thread. Reread the subject line and the original question. It hasn't been fully answered yet.

What I wanted to know is why RPM was complaining about a failed dependency for libc.so.6 when I had a /lib/libc.so.6 already installed. This is the question I'm still trying to get answered:

Quote:
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?
One answer was to run "strings /lib/libc.so.6" and look for GLIBC2.8 in the output. Surely there is a better way.
 
Old 10-21-2009, 04:39 PM   #18
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I think - but don't know...(the output looks exactly like it):
ldd is used

I took the archive and unpacked it just as rpm would do.
Then ran ldd -v against the binary in /usr/sbin/vpnc (against the archives contents)
This is what I got:
Code:
jochen@toy ~/Desktop/Downloads/vpnc $ ldd -v ./usr/sbin/vpnc
	linux-gate.so.1 =>  (0xb7853000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb77cd000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb77c8000)
	libc.so.6 => /lib/libc.so.6 (0xb7677000)
	/lib/ld-linux.so.2 (0xb7854000)

	Version information:
	./usr/sbin/vpnc:
		libgcrypt.so.11 (GCRYPT_1.2) => /usr/lib/libgcrypt.so.11
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.8) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libgcrypt.so.11:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libgpg-error.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/lib/libc.so.6:
		ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
You will easily spot the line similar to rpm's error message in your first post.

man ldd
starts with:
Quote:
ldd - print shared library dependencies
so much for the second part of the question.
For the first part I'd use:
Code:
eix -sI glibc
but that is specific for Gentoo.

HTH
 
Old 10-21-2009, 05:18 PM   #19
sysbox
Member
 
Registered: Jul 2005
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks, jomen. That's pretty close to the answer I was looking for. On Fedora/CentOS or Red Hat, the equivalent command to extract files from an rpm archive without installing it is

Code:
rpm2cpio WHATEVER.rpm | cpio -idmv
Then I can run "ldd -v" on the executable. Interestingly enough, when I do that it does reproduce the libc.so.6 error, but it doesn't complain about "upstart" not being found.
 
Old 10-21-2009, 05:34 PM   #20
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
just a guess:
The executable itself does not need upstart - but upstart is the version of init fedora uses.

This vpnc here is a fedora 10 specific package.

The rpm contains descriptions of the package - I can view them in "mc" (filemanager).
Don't know a way to make them visible otherwise.
(rpm -i ... - but it's not as clear as in "mc"
the command it uses to display the contents seems to be:
rpm -qivlp --scripts <file>)

When the archive is unpacked
(the way I did it: rpm2targz and then unpack the resulting tar.gz),
these descriptions are not there as they are only important to rpm itself (control-files).
These are in a directory called "INFO" (in the rpm).
There is a file (among lots of others) called: "REQUIRENAME"
"upstart" is listed there - so rpm will complain if you don't have it, but ldd will not because the binary (vpnc) itself does not require it.

HTH

Last edited by jomen; 10-21-2009 at 09:44 PM.
 
  


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
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 12:42 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