Glib Issues

Place to discuss Mandriva Linux
Post Reply
Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Glib Issues

Post by Maniaman » Sat Sep 20, 2003 9:38 am

Each time I try to compile somethign that requires
Glib I constantly get this error:
(Running Mandrake 9.0)
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.2.1, but GLIB (2.0.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.
I have Glib 2.2.1 installed, and apparently 2.0.6 is still installed too. How would I remove Glib 2.0.6?

I've already tried rpmdrake, but it ont see the old version of glib.

Linux Frank
administrator
administrator
Posts: 239
Joined: Fri Jan 10, 2003 2:06 pm

Post by Linux Frank » Sun Sep 21, 2003 4:37 pm

You may need the -developer version to compile in the headers.

to remove you could try

#rpm -e --nodeps <Glib version to delete>

To find which versions are installed

#rpm -q Glib

That might help.

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Fri Sep 26, 2003 3:07 pm

When I did the rpm -q glib I got this:

Code: Select all

[maniaman@localhost maniaman]$ rpm -q glib
package glib is not installed

Linux Frank
administrator
administrator
Posts: 239
Joined: Fri Jan 10, 2003 2:06 pm

Post by Linux Frank » Sat Sep 27, 2003 9:31 am

rpm is case sensitive. you need the exact name of the program, not including architecture and version numbers. You can wildcard it. See here.

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Sat Sep 27, 2003 10:11 am

I tried wildcarding it, got this:

[maniaman@localhost maniaman]$ rpm -q glib*
package glib-2.2.1 is not installed

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Sat Oct 04, 2003 3:31 pm

argh. I still can't get the stupid thing to work. Hell, I cant even find 2.0.6 on my system. Anybody have *any* ideas how to fix this? :(

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Oct 04, 2003 8:04 pm

Sorry you aren't getting any help. I don't believe any (or many) of the regulars here use Mandrake. Some have in the past but have since switched to something else. The only suggestion I can think of giving is to ask the question on a more high traffic Mandrake site like:

http://www.mandrakeexpert.com/

or

The Mandrake Forum on LinuxISO.org.

This looks similar to your problem:
http://linuxiso.org/forums/viewtopic.ph ... light=glib

I have moved this to the Mandrake forum as I believe it to be a Mandrake specific issue.

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Sun Oct 05, 2003 1:51 pm

I think I finally figured it out. I basically removed every single trace of glib from my system, then recompiled 2.2.1 :shock:

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Wed Oct 08, 2003 4:48 pm

Well, this is just *WONDERFUL*

After getting upgrading Glib and GTK it seems that absolutely no program that required GTK or Glib will load. :(

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Oct 08, 2003 5:46 pm

Again, wish I could help you. "apt-get install gaim" is all there is to it on Red Hat. I can't believe there is no gaim built for Mandrake.

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Thu Oct 09, 2003 2:21 am

I'm sure urpmi and it's frontend handle depandancies these days don't they? How has you system gone so wrong?

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Sat Oct 11, 2003 8:30 am

Tux, not sure how it screwed up so bad. I did manually delete the files from the console though. But the new version of Glib should have replaced allt he files that were required, shouldn't it have?

VoidMain, I wasn't only having the glib problems with gaim, I was having it with pretty much any program that required glib.

Linux Frank
administrator
administrator
Posts: 239
Joined: Fri Jan 10, 2003 2:06 pm

Post by Linux Frank » Fri Oct 17, 2003 7:02 pm

Sorry I droped out from you for a while. I am confused, are you compiling from source or using RPMs?

Are you running greater than 8.2? You should install GTK and Glib and stuff from the CD, and then run the software update from the config manager. Make sure you set up a mandrake website related repository, and then run the update, what should happen is that you will be upgraded to the latest mandrake versions of GTK, Glib, etc. You may have to configure your update otions. If you remove the RPM versions and then compile from source you might break dependancies.

Mandrake use a mdk version of GTK, which means it has probably been altered a little from the GTK version, this may or may not break various dependancies, an dmight account for the problems.

Now for something I heard from an unreliable source, Gaim has problems compiling with some versions of GTK, which might have given you problems.

Now your original problem may be that you compiled GTK from source, this would not update the RPM database in Mandrake, so other programs would break dependancy because you put a new one on there that they cannot detect.

I don't know if any of that helps.

Maniaman
scripter
scripter
Posts: 94
Joined: Tue Mar 11, 2003 5:10 pm

Post by Maniaman » Fri Oct 17, 2003 7:44 pm

I did compile Glib and GTK from source. Gaim wasn't the only software giving me problems with Glib. I also looked for upgraded glib/gtk mandrake rpms but couldn't find any.

Post Reply