GTK+ FAQ
<<< Previous | How to find, configure, install, and troubleshoot GTK+ | Next >>>

# When installing a GTK+ application, configure reports that it can't find GTK.

There are several common reasons for this:

- You have an old version of GTK installed somewhere. RedHat 5.0, for example, installs an older copy of GTK that may not work with the latest applications. You should remove this old copy, but note that in the case of RedHat 5.0 this will break the `control-panel` applications.

- `gtk-config` (or another component of GTK) isn't in your path, or there is an old version on your system. Type:

  `gtk-config --version`

  to check for both of these. If it returns a value different from what you expect, then you have an old version of GTK on your system.

- The ./configure script can't find the GTK libraries. As ./configure compiles various test programs, it needs to be able to find the GTK libraries. See the question above for help on this.

If none of the above help, then have a look in config.log, which is generated by ./configure as it runs. At the bottom will be the last action it took before failing. If it is a section of source code, copy the source code to a file and compile it with the line just above it in config.log. If the compilation is successful, try executing it.

<<< Previous | Home | Next >>>
When compiling programs with GTK+, I get compiler error messages about not being able to find `glibconfig.h`. | Up | Development of GTK+