Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The problem in my other post seems to be going a lot deeper...
To make it short: I have compiled and installed new versions (2.4) of glib and gtk+ a while ago. Now I found out that glib-config --version and gtk-config --version both say 1.2.10. I downloaded glib 2.4 again, compiled and installed it, glib-config --version still says 1.2.10. Any idea what may be wrong?
glib 1.x and glib 2.x as well as gtk 1.x and 2.x are different and can coexist on a system. I am sure your gtk2 and glib2 installation is fine because I have them installed on my system but the version of glib-config is listed as 1.2.10.
How do I find out then if I have glib 2.4 or 2.6 installed? I have a problem (getting lots of unknown symbol: g_assert_warning errors) that I have read elsewhere may be caused by glib and gtk+ 2.6 and solved by going back to glib and gtk+ 2.4. This could be hard though if I can;t find out which version I actually have installed...
In /usr/include I have directories for glib-1.2and glib-2.0 ... presumably future updates will create new directories. I note that in /usr/lib/glib/include there is a header file called glibconfig.h which lists, among other things, major version 1, minor version 2 etc ... i.e. 1.2.10 so glib-config --version returns 1.2.10
the 2.x.x of the gnome libs do not use xxxx-config scripts, they use pkg-config. if you want to use glib-2.x instead of 1.x, use pkg-config, if you want to use the 1.x libs, use glib-config.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.