LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Compiling gimp 2.3.7: configure can't find gtk2+2.8.12 (http://www.linuxquestions.org/questions/fedora-35/compiling-gimp-2-3-7-configure-cant-find-gtk2-2-8-12-a-418812/)

Kropotkin 02-23-2006 02: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:

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...

Lenard 02-26-2006 12:03 PM

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.

Kropotkin 02-27-2006 05:47 AM

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.


All times are GMT -5. The time now is 11:56 AM.