LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2005, 05:35 AM   #1
gauravbagga
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Question libc.so.6 not found


when i try to install any rpm it gives me error dependency not found of
libc.so.6. i don't know which rpm to install so that i can install the rpms
some rpms get installed but some give error i.e the dependency not found and lists few others well should i get the fedora core 1 cd and install the rpm which can give this libc.so.6. but i don't know which rpm contains that or is there any command to get this from existing package ???
 
Old 03-04-2005, 10:47 AM   #2
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Install glibc.

How do you find out the answer to this question? You can learn the name of the package that installed a file by typing:
Code:
rpm -qf filename
... but you don't have the file installed. So, the simple way is to ask someone that has it installed to type that command on their system and tell you the answer. This is exactly what I did.

It would seem that rpm should have a method of doing this on a directory full of uninstalled rpm files from your distro disks, but if it does, I haven't discovered it yet. Here is a brute force method:
Code:
1.  Mount your distro cdrom.
2.  cd to the directory that has all the rpm files on it.
3.  Run the perl script shown below using the file name you are looking for as the argument
4.  Repeat for your other distro disks if you havent found it.
Here are the results from my Redhat 9 system:
Code:
$ whichrpm.pl libc.so.6
/lib/libc.so.6 is installed by package glibc-2.3.2-27.9.7.i386.rpm
/lib/i686/libc.so.6 is installed by package glibc-2.3.2-27.9.7.i686.rpm
/lib/libc.so.6 is installed by package glibc-2.3.2-27.9.7.i686.rpm
/lib/tls/libc.so.6 is installed by package glibc-2.3.2-27.9.7.i686.rpm
Here is the perl script. I named mine "whichrpm.pl".
Code:
#!/bin/perl
 
$target = $ARGV[0];
@packages = `ls -1 *.rpm`;
 
foreach $p (@packages) {
  chomp $p;
  @files = `rpm -qlp $p 2>/dev/null`;
  foreach $f (@files) {
    chomp $f;
    if ($f =~ /$target/) {
        print "$f is installed by package $p\n";
    }
  }
}
 
  


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
libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.2) needed for Linux 7.3.1 vivek_thampy Linux - Software 1 08-09-2004 04:12 PM
Libc? DARKRAIN Fedora 1 02-21-2004 10:11 AM
xauth: /lib/i686/libc.so.6: version 'GLIBC_2.3.2' not found yigald Linux - Newbie 0 02-20-2004 11:52 PM
libc.so verse libc.so.5 markstevens Linux - Software 4 06-19-2003 11:41 AM
libc.so.6 bash Linux - Distributions 2 08-09-2002 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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