LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trying to get rid of an old version of Glib (https://www.linuxquestions.org/questions/linux-software-2/trying-to-get-rid-of-an-old-version-of-glib-191329/)

GaijinPunch 06-08-2004 10:50 PM

Trying to get rid of an old version of Glib
 
I've got Glib 2.2.1 installed (via RPM) and am trying to get rid of it. Like an idiot, I already installed Glib 2.4. It's not giving me any problems, other than I can't compile atk which I need for GAIM to install.

Tryin to uninstall the RPM results in about 200 dependencies bitching at me. I can't find a Glib2-2.4 RPM which I could use to update the old.

The error I get from atk is:
*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.1)
*** 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.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

I did the last part, to no availa:
$echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/
$

Any help is appreciated.

Boby 06-08-2004 11:47 PM

hello!

you have to download the devel. you said you have glib2-2.2.1 as rpm installed. download and install "glib2-devel-2.2.3-1.1" too. other...you can take it from the distro-cd's.

you should not compile and install glib by youre own. are you really sure what youre doing? you cand destroy the system. if you want to upgrade these..then via rpm!

maybe you should download devel packages for glib, glibc, gtk and gtk+ too.

i hope this helped!

boby

Hammett 06-09-2004 05:27 AM

Yeah, well, most of the times there's no rpm for the dependencies you need. I had the same problem with RH9, tired of not having the latest things on rpm and affraid of messing up the whole system I decided to upgrade to FC2. So, sometimes you need to compile from source to resolve dependencies.

@GaijinPunch

You can solve the problem you get by putting "./configure --disable-glibtest". It worked well for me when I installed Gimp2 on my old RH9.

GaijinPunch 06-10-2004 10:09 PM

Thanks for the reply guys.
One of the guys at work has convinced me to go Gentoo... another guy I used to work with said I should listen to him. He said you get much more control, and no more depency nightmares.

And yes - I tried updating Glib via RPM, but the version I need (2.4.2) is not available. :(


All times are GMT -5. The time now is 07:14 AM.