[pygtk] Conflict between glib version
Gian Mario Tagliaretti
gianmt at gnome.org
Thu Feb 8 04:28:27 WST 2007
2007/2/7, Amanda Ortega <amandaortega a gmail.com>:
> Hi! I'm trying to install pygtk, therefore I had to install a glib version
> >= 2.8.0. I did this, but now, when I try ./configure, this error occurs
>
> checking for GLIB - version >= 2.8.0...
> *** 'pkg-config --modversion glib-2.0' returned 2.12.0, but GLIB (2.6.4)
> *** 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: gobject is required to build pygtk?
>
> How can I resolve this conflict? I can't remove 2.6.4 because it would
> remove libatk1.0-dev, libbonobo2-dev, libgconf2-dev, libglibmm-2.4-dev,
> libgnome2-dev, libgtk2.0-dev, libidl-dev, liborbit2-dev, libpango1.0-dev and
> python2.4-dev.
You have installed the newer Glib in another prefix than the system
one, most likely /usr/local/lib, when pkgconfig is run by the
configure script it finds a newer Glib but in the system path there is
the older one.
What you can do is set the necessary environment variable:
export LD_LIBRARY_PATH=/usr/local/lib (or whatever)
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PATH=/usr/local/bin:$PATH
when you then run again the configure script (in the same terminal
where you have set those variables) it will find the newer Glib.
The above is quite dangerous for the sanity of your system if you
don't know exactly what you are doing, also because you are probably
going to install the newer pygtk in an alternate directory as well and
you will need to know how to use it then...
My advice is to _always_ use (whenever possible of course) the
packages for you distro, another thing is if you are using LFS :p
cheers
--
Gian Mario Tagliaretti
http://www.parafernalia.org/pygtk/
More information about the pygtk
mailing list