PDA

View Full Version : Uninstalling older glib


new_comer
08-05-2007, 05:29 PM
Hello to all,

I've just upgraded the glib-2.0 lib from 2.6.0 to 2.13.0, however, when I was configuring the gtk+-2.10.12, error as follows resulted:


checking for GLIB - version >= 2.12.0...
*** 'pkg-config --modversion glib-2.0' returned 2.13.0, but GLIB (2.6.0)
*** 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.12.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.


I've already uninstalled the Glib-2.6.0 and disabled the one in /usr/lib/pkgconfig, change the ld.so.conf and run ldconfig but the error still comes.

Could someone give me a hand on this! Many thanks in advance.



Best regards


Newbie

firepages
08-06-2007, 03:49 AM
taks a look in /usr/local/lib and see what if anything your libglib.$ver.so is linked to, with vmware I had to change a libdbus link to point to a different version than was actually installed so simply had to change the symbolic link (if you do this be sure to note your changes somewhere just in case !!)

else you might be able to export the proper version for the build..

export LD_LIBRARY_PATH=/path/to/your/glib/build/lib
./configure ...etc

new_comer
08-06-2007, 04:17 PM
Hi firepages,

Many thanks for your giving me advices again. I'd followed your advices and checked the /usr/local/lib/ and found there are 2 kinds of files in the library, one is for ver. 2.6.0 and the others are for 2.13.0. They're as follows:


libglib-2.0.so.0.1300.0
libglib-2.0.so.0.600.4
libgmodule-2.0.so.0.1300.0
libgmodule-2.0.so.0.600.4


The symbolic links are all linked to the files of ver. 2.13.0 already as shown:


lrwxrwxrwx 1 root root 23 Aug 5 21:51 libglib-2.0.so -> libglib-2.0.so.0.1300.0
lrwxrwxrwx 1 root root 23 Aug 5 21:51 libglib-2.0.so.0 -> libglib-2.0.so.0.1300.0
lrwxrwxrwx 1 root root 26 Aug 5 21:51 libgmodule-2.0.so -> libgmodule-2.0.so.0.1300.0
lrwxrwxrwx 1 root root 26 Aug 5 21:51 libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.1300.0


Could I know what to do next ? Also, if the path below is correct for export as LD_LIBRARY_PATH and how to configure it ?


/usr/local/lib/glib-2.0/2.13.0


Many thanks again firepages!



Best regards



Newbie

new_comer
08-08-2007, 06:08 PM
Many thanks firepages, it can now get out of the error on Glib versions. Thanks a lot for your help!


Best regards


Newbie