Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 02-23-2006, 01:28 PM   #1
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Rep: Reputation: 32
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.


Last edited by Kropotkin; 02-24-2006 at 03:36 AM.
Old 02-26-2006, 11:03 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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.

Last edited by Lenard; 02-26-2006 at 11:54 AM.
Old 02-27-2006, 04:47 AM   #3
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Original Poster
Rep: Reputation: 32

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling the gimp Netsensei General 3 12-06-2005 02:27 AM
compiling gtk1 app against gtk2 cs-cam Linux - Newbie 3 01-11-2005 02:53 AM
Can't configure Gimp 2.2.1 zwyrbla Linux - Software 6 01-07-2005 09:47 PM
Problem with Gimp 2.0 [compiling] Tsukasa Linux - Software 0 04-12-2004 06:19 AM
Compiling Gimp-Print Mikx Linux - Software 0 07-09-2003 09:09 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration