I am trying to install GTK as a dependency of a dependency of Audacity. The first time I tried to do the usual configure-make-make install set of commands for it, it said I was missing the cairo dependency. I installed this, however, when I again tried to install GTK I got an error message like this:
*** 'pkg-config --modversion glib-2.0' returned 2.28.7, but GLIB (2.26.1)
*** 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
It appears that even though I installed the latest version of GLib, traces of some older version (which was apparently not installed before) remain on my machine and are confusing the GTK installer. I have no idea how this 2.26.1 installation got there or how to remove it. I certainly never deliberately installed it. I have tried redownloading the GLIB archive, uninstalling and reinstalling it, and searching my drive for any files that appear related to GLib and deleting them (probably breaking stuff in the process). Nothing helps. Does anyone know how I can remove this phantom GLib 2.26.1 installation? Where else could it be hiding?
Also, I am running Ubuntu Maverick. I probably should have mentioned that earlier... I checked the package manager and couldn't find anything GLib-related installed there either.