How to solve old GLIB error
19,926
I have the same problem as you.
I set PKG_CONFIG_PATH
and LD_LIBRARY_PATH
as
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib
But it didn't work. Then I found someone solve it as
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
And it did work!
Related videos on Youtube
Author by
Hakim_Djzarie
Updated on September 18, 2022Comments
-
Hakim_Djzarie over 1 year
I am in the process of installing GTK+ but it needs various pre-requisites. These are
- glib - 2.0 >= 2.35.3
- atk - >= 2.7.5
- Pango- >= 1.32.4
- gdk-pixbuf-2.0 >= 2.27.1
Now I upgraded my glib-2.0 to 2.38.2, and I've tried upgrading atk, pango and gdk-pixbuf
checking for GLIB - version >= 2.31.2... 'pkg-config --modversion glib-2.0' returned 2.38.2, but GLIB (2.32.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 configure: error: GLIB 2.31.2 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 have been go round in circles for the past few hours trying to get this working, if anyone out there can help it would be much appreciated. Thanks in advance
-
chaskes about 10 yearsHow did you upgrade glib?
-
Hakim_Djzarie about 10 yearsDownloaded it from ftp.gnome.org/pub/gnome/sources/glib and just did the ./configure && make && make install
-
chaskes about 10 yearsThe package manager doesn't know you installed the newer glib and only sees the older version. What version of Ubuntu are you using?
-
Hakim_Djzarie about 10 years12.04 is my version of Ubuntu chaskes