Let's say you get the following error message:
  • checking for GLIB - version >= [version number]...
  • *** 'pkg-config --modversion glib-2.0' returned [version number], but GLIB ([older version])
  • *** 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

Possible solution: Type in:

  • export LD_LIBRARY_PATH=/usr/local/lib

Note: It is not recommended to mess around with LD_LIBRARY_PATH.

Replace /usr/local/lib if necessary. Then run ./configure again:

  • ./configure