LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 02-23-2006, 02:28 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 348

Rep: Reputation: 31
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:

Code:
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/ld.so.conf 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/ld.so.conf.

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.

Thanks...

Last edited by Kropotkin; 02-24-2006 at 04:36 AM.
 
Old 02-26-2006, 12:03 PM   #2
Lenard
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: 56
Visit; http://rpm.pbone.net/
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 12:54 PM.
 
Old 02-27-2006, 05:47 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 348

Original Poster
Rep: Reputation: 31
solved

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:

Code:
$ export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/pkgconfig
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.
 
  


Reply


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 03:27 AM
compiling gtk1 app against gtk2 cs-cam Linux - Newbie 3 01-11-2005 03:53 AM
Can't configure Gimp 2.2.1 zwyrbla Linux - Software 6 01-07-2005 10:47 PM
Problem with Gimp 2.0 [compiling] Tsukasa Linux - Software 0 04-12-2004 07:19 AM
Compiling Gimp-Print Mikx Linux - Software 0 07-09-2003 10:09 AM


All times are GMT -5. The time now is 04:08 PM.

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