-   Fedora (
-   -   Compiling gimp 2.3.7: configure can't find gtk2+2.8.12 (

Kropotkin 02-23-2006 01:28 PM

Compiling gimp 2.3.7: configure can't find gtk2+2.8.12
I am trying to compile the latest development release of Gimp, v2.3.7 under FC4. In order to do so, I also had to compile a number of dependencies, notably the latest gtk2+ source, v2.8.12. But I keep getting this error message from ./configure:


checking for GTK+ - version >= 2.8.8... no
*** Could not run GTK+ test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK+ or finding the wrong
*** version of GTK+. If it is not finding GTK+, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: Test for GTK+ failed. See the file 'INSTALL' for help.

Initially, I installed gtk2 2.8.12 in /usr/local, as is my preference for newer, non-packaged versions, and when that didn't work, removed the latest official package, 2.6.10, with sudo rpm -e --nodeps gtk2, and installed it in the default location, but that still didn't solve the problem.

Yes, I added /usr/local to /etc/

Yes, I run sudo ldconfig after installing the libraries.

What perplexes me is that I was able to install gtk2 2.8.12 in /usr/local and compile gimp 2.3.7 without any problem under Ubuntu (Breezy), without having to uninstall the older versions of gtk2 and gimp, so in theory it is possible.

Suggestions on how to get Gimp 2.3.7 running here most welcome.


Lenard 02-26-2006 11:03 AM

Search for; gtk2-2.8.12*.rpm (you might need the gtk2-devel package also)

Edited 12:54 PM EST
You will need to build from the source rpm package and you will need gtk-doc installed also in order to build the binaries.

Kropotkin 02-27-2006 04:47 AM

I finally succeeded in getting Gimp 2.3.7 to compile. The main problem turned out be some obsolete .pc files in /usr/lib/pkgconfig related to some gtk2 dependencies, namely atk, glib, cairo, and pango, which I had installed in /usr/local. When I reversed the order of pkgconfig's search path:


$ export

I was eventually able to get it to work.

For some reason, I wasn't able to find up-to-date RPMs for the dependencies of the newer gtk2 RPM lenard referred to.

All times are GMT -5. The time now is 03:48 AM.