Click to See Complete Forum and Search --> : problem with glib update


grendian
03-19-2003, 09:54 PM
I'm pretty sure I installed the new glib2.2.1 fine, but when I try to install atk-1.2.0, it tells me that pkg-config says i have the right glib, but it only finds the old version.Upon configuration of atk, i get this error message:

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:


now, there's nothing about the glib path in /etc/ld.so.conf and i don't know where the LD_LIBRARY_PATH variable is. can anyone help me here?

sasKuatch
03-20-2003, 02:43 PM
If you compiled the new glib from source, you probably still have the old one, possibly as an RPM. You need to remove that package without removing any of the packages that depend on it, because otherwise you won't be left with hardly anything.

Once you do that, you need to find the config files from the new one, which, I believe should be in /usr/local/include/glib, if not, start looking from /usr/local/ at least. It's probably still in the directory where you compiled glib from (eg. /home/you/glib-2.2.1-i386/glib.pc or something). If you don't find it in /usr/local/include, just set the PKG_CONFIG_PATH to where you have it in your compilation directory. This is probably something like

set PGK_CONFIG_PATH=/home/you/path/to/whatever.pc
export $PKG_CONFIG_PATH

whatever.pc is probably something like config.pc or glib.pc

I wouldn't take the above verbatim, so if somebody could check me on that, that would be great. But in a nutshell, that's what I think you have to do.

sasKuatch
03-20-2003, 02:45 PM
Oh, yeah, if you compiled glib, you probably need to add /usr/local/lib to your /etc/ld.so.conf and run ldconfig as root.