LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-27-2006, 09:35 PM   #1
pxy20
LQ Newbie
 
Registered: May 2005
Location: P.R.China
Posts: 10

Rep: Reputation: 0
always problem in installing libc.so.6


i was trying to install a gtk+-1.2.10-52.fc6.i386.rpm, but it announced me
"Failed dependencies:
libc.so.6(GLIBC_2.4) is needed by gtk+-1.2.10-52.fc6.i386"
then i found the glibc-2.3.5-10.i386.rpm in rpmfind.com and tried to install it, it had this error
"Failed dependencies:
glibc-common = 2.3.5-10 is needed by glibc-2.3.5-10.i386
glibc > 2.3.4 conflicts with glibc-common-2.3.4-2.9.i386"
so i download the glibc-common-2.3.5-10.i386.rpm and tried to install it. it has the error
"error: Failed dependencies:
glibc < 2.3.5 conflicts with glibc-common-2.3.5-10.i386"

i also tried to rebuild a source rpm"glibc-2.3.6-3.src.rpm"
this error occurs
"/usr/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
make[2]: *** [/usr/src/redhat/BUILD/glibc-2.3.6/alinux/elf/dl-allobjs.os] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.6'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.17444 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.17444 (%build)
"


it seems that i cant intall the file
whatever can i do to fix the problem?

my system is RHEL4
i used the command "rpm -qa|grep glibc"
it had the result
"glibc-common-2.3.4-2.9
glibc-headers-2.3.4-2.9
glibc-kernheaders-2.4-9.1.87
glibc-2.3.4-2.9
glibc-devel-2.3.4-2.9
"
 
Old 05-27-2006, 10:03 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Try installing all of the development packages. That should provide you with the libraries you need.
 
Old 05-28-2006, 08:40 PM   #3
pxy20
LQ Newbie
 
Registered: May 2005
Location: P.R.China
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for your advice
I tryed many different glibc packages, but it still can not work out.

more over, i found i can't upgrade my system without the libc.so.6

can u give me some further advices?
 
Old 05-28-2006, 08:55 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I do not like recommending a Linux distribution that will fix your problems, but Gentoo is golden when these problems occure in other distributions.

If you still want use RHEL 4, try using apt-get or yum to help you gather the dependencies. If it can gather the dependencies, I recommend backing up your installation. When something goes wrong during or a program glitches more than you think from the upgrade, then you can restore your system from the backup and forget the upgrade. Hopefully, you test the backup before upgrading the library.
 
Old 05-29-2006, 02:30 AM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Hi

I had this same problem a while back. What is happening is that you are trying to install software that is not meant for your distrobution (my problem occurred when I tried to install software for FC5 in FC4). libc.so.6(GLIBC_2.4) only recently was released for FC5. If you will notice the version of GTK you are trying to install is for fc6, which is still in development and will be for some time yet as FC5 was only released in March. Many of the freatures of RHEL4 are the result of testing in FC3 and FC4. Fedora is considered the testing ground for RHEL and many of the components of the FC5 will appear in the next release of RHEL.

Hope this helps

Bob
 
Old 05-29-2006, 04:15 AM   #6
pxy20
LQ Newbie
 
Registered: May 2005
Location: P.R.China
Posts: 10

Original Poster
Rep: Reputation: 0
thanks a lot!
I found another GTK+ rpm, and finally the GTK installing problem was worked out.

BUT after I installed gtk+-1.2.10-39, the system still announced me that
"configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***"

I used the rpm -q command, and I got the result "gtk+-1.2.10-39"

I think may be it is due to some environment variable problem.

can any of u tell me how to fix it?
 
Old 05-29-2006, 04:41 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Do you have more details on the error reported by "configure"?

Also, since you've installed gtk+ (what you wanted in the first place), why are you still
running a "configure" tool? What else are you trying to compile from source & install?

I doubt that your environment vars have anything to do with the error. More likely, rpm installed gtk+ in a place that's different from where "configure" expected to find it.
 
Old 05-29-2006, 04:48 AM   #8
pxy20
LQ Newbie
 
Registered: May 2005
Location: P.R.China
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for your attention.

here are the details:
I was trying to install xmms-1.2.10.tar.gz
when i was using the ./configure command, i got the error

"checking for gtk-config... no
checking for GTK - version >= 1.2.2... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***
"

but I do installed gtk+-1.2.10-39.
thanks in advance
 
Old 05-29-2006, 05:10 AM   #9
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try doing a:
Code:
whereis gtk-config
That should tell you where the gtk-config utility is installed.
Setting the $GTK_CONFIG environment variable to that full path should do the trick.

As an alternative solution, you could play around with the "-prefix" option of "configure".
ie if gtk+'s binaries are installed in
/usr/bin, you could specify -prefix=/usr and/or put /usr/bin in your $PATH, as suggested.
To find out where rpm installed the gtk+ programs, try doing:
Code:
rpm -q --filesbypkg gtk+
That'll show you which files where installed from the gtk+ rpm.
 
Old 05-29-2006, 09:28 AM   #10
pxy20
LQ Newbie
 
Registered: May 2005
Location: P.R.China
Posts: 10

Original Poster
Rep: Reputation: 0
The problem has drove me crazy.
I tried "whereis gtk-config", but no path return back.
then I tried "rpm -q gtk", I can got "gtk-1.2.10-885"
and I tried "rpm -q gtk+" and got " gtk+-1.2.10-39"

I also tried "whereis gtk", I got "gtk: /etc/gtk /usr/lib/gtk". I explored these two folders, I can't find the gtk-config either, but i find a file "gtkrc", whose type is "GTK CONFIGURATION". then i tried "export GTK_CONFIG=/etc/gtk/gtkrc ". However, i still got erorrs
 
Old 05-30-2006, 02:17 AM   #11
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
The /etc/gtk/gtkrc file is probably a config file containing settings for GTK. It's not a program in itself, so it
can't be the gtk-config program you're looking for.

gtk-config should be in /usr/bin. At least, it is on my old RedHat 8 box.

rpm -q gtk yields nothing for me.
rpm -q gtk+ says that gtk+-1.2.10-22 is installed, which is older than your version.

Your "whereis gtk" output worries me a bit. It only indicates a gtk library and a config directory (under /etc). It doesn't find any
programs (ie under /bin, /usr/bin, etc). I'm thinking that maybe you don't have the complete GTK+ package and thus may need to install some
rpms.

Try finding out what was installed in the gtk and gtk+ rpms, by using:
Code:
rpm -q --filesbypkg gtk
rpm -q --filesbypkg gtk+
The first will tell us what's in the gtk rpm (I don't have it installed, so I'm wondering if it can conflict with your gtk+ installation).
The second will check the files installed from your gtk+ rpm. Post it's output, or try to find any executable programs
(ie in /bin, /usr/bin), especially keeping an eye out for "gtk-config".

Maybe a
Code:
whereis gtk+
might help too.
 
Old 11-27-2007, 01:47 AM   #12
antus
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Rep: Reputation: 0
gtk-config is in the gtk+-devel package

Last edited by antus; 11-27-2007 at 01:48 AM.
 
  


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
Problem with libc.6.so CmdrChopper Linux - Newbie 1 10-24-2004 06:55 PM
libc problem thrix Programming 1 02-01-2004 09:53 AM
problem with library libc.so.6 infra Linux - Software 2 10-25-2003 11:25 PM
RPM - stupid problem with libc.so.6 uFoQ Linux - Software 3 09-06-2003 03:57 PM
libc.so.6 problem ih8linux Linux - Software 11 04-21-2003 02:08 PM

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

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