Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using the resources on this great site, I managed to get through installing the newest version of GTK (tarball, not rpm) and all it's dependencies, but I ran into a problem when trying to install Gimp-1.2.4...
When I run ./configure, it comes up with the following error message, which I have found to be something others have experienced, but none of the explanations seemed to help my particular problem:
checking for GTK - version >= 1.2.8... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: Test for GTK failed. See the file 'INSTALL' for help.
Well, I did see the INSTALL file for help, and I tried editing the gtk-config script to point to /usr/local directories, but that didn't help. I would think that there should be a new version of the gtk-config script, but I can't find it anywhere. I've seen elsewhere that it is included in the gtk-devel files, but I can't find a tarball for those on the gtk.org site.
I did run ldconfig after installing gtk and added the necessary paths to /etc/ld.so.conf. Perhaps I've been troubleshooting so much that I've shot the solution!
Any help would be greatly appreciated, and please forgive my ignorance.
I'm running Mandrake8.0, if that is of any consequence.
From my understanding GTK and GTK2 are
*NOT* source compatible, thus having only
the latter installed should give you troubles
with heaps of software that wants GTK...
Yes, when I installed Mandrake, it came with gtk-1.2 and that is still installed. The docs for Gimp-1.2.4 said that it required GTK1.2.8 at the least. At the moment, I have gtk-1.2 and gtk-2.2 installed. It seems to me that an error like this would be caused by the ./configure file looking for gtk and finding gtk-1.2 first. Like I said in my first post, as far as I know and have read, I have taken the necessary precautions to assure that it can find the most recent install.
Also, I tried installing some other software that gave me the same error, so that would rule out Gimp being the problem So it seems that I must be missing a step, one of those obvious ones that when someone tells me, I'll have to smack myself for missing.
Thanks for your help. Now,
EDIT:
I just found in the Gimp INSTALL file that it doesn't like it if there is any old GTK version on the system and that I should remove it completely, but this would take half of the applications with it. It doesn't detail any options on telling it where to search for the new version, only to remove the old.
Searching through the config.log file, I found this string of errors:
configure:12031: checking for gtk-config
configure:12049: found /usr/bin/gtk-config
configure:12062: result: /usr/bin/gtk-config
configure:12070: checking for GTK - version >= 1.2.8
configure:12177: gcc -o conftest -g -O2 -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include conftest.c -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib
-ldl -lXi -lXext -lX11 -lm >&5
In file included from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4,
from /usr/local/include/gtk-2.0/gdk/gdk.h:30,
from /usr/local/include/gtk-2.0/gtk/gtk.h:31,
from configure:12151:
/usr/local/include/gtk-2.0/gdk/gdktypes.h:33:25: pango/pango.h: No such file or
directory
In file included from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4,
from /usr/local/include/gtk-2.0/gdk/gdk.h:30,
from /usr/local/include/gtk-2.0/gtk/gtk.h:31,
from configure:12151:
/usr/local/include/gtk-2.0/gdk/gdktypes.h:51:23: gdkconfig.h: No such file or directory
In file included from /usr/local/include/gtk-2.0/gdk/gdk.h:37,
from /usr/local/include/gtk-2.0/gtk/gtk.h:31,
from configure:12151:
/usr/local/include/gtk-2.0/gdk/gdkfont.h:7:30: pango/pango-font.h: No such file
or directory
In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:34,
from /usr/local/include/gtk-2.0/gtk/gtkmisc.h:32,
from /usr/local/include/gtk-2.0/gtk/gtklabel.h:31,
from /usr/local/include/gtk-2.0/gtk/gtkaccellabel.h:34,
from /usr/local/include/gtk-2.0/gtk/gtk.h:33,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkstyle.h:33:25: pango/pango.h: No such file or
directory
In file included from /usr/local/include/gtk-2.0/gtk/gtkmisc.h:32,
from /usr/local/include/gtk-2.0/gtk/gtklabel.h:31,
from /usr/local/include/gtk-2.0/gtk/gtkaccellabel.h:34,
from /usr/local/include/gtk-2.0/gtk/gtk.h:33,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkwidget.h:36:27: atk/atkobject.h: No such file
or directory
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:35,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkaccessible.h:23:21: atk/atk.h: No such file or directory
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:47,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkcellrenderertext.h:23:25: pango/pango.h: No such file or directory
In file included from /usr/local/include/gtk-2.0/gtk/gtkentry.h:33,
from /usr/local/include/gtk-2.0/gtk/gtk.h:64,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkimcontext.h:25:25: pango/pango.h: No such file or directory
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:64,
from configure:12151:
/usr/local/include/gtk-2.0/gtk/gtkentry.h:35:25: pango/pango.h: No such file or
directory
configure:12180: $? = 1
configure: program exited with status 1
Now, GTK-2.2 is installed in /usr/local/lib and /usr/local/include, so are Pango-1.0 and ATK-1.0. It seems like the GTK header files are trying to include from weird directories, for example /usr/local/include/gtk-2.0/gtk/gtkentry.h includes pango/pango.h, which doesn't exist. Does this mean that I installed GTK with wrong or insufficient flags?
I found on the download page for windows (of all places) on the gimp site some advice about changing GLIB_LIBS and GLIB_CFLAGS environment variables. I tried this out on my system with these commands:
and ran the configure script again, but that had no effect. I am now reading through the actual configure script to see if I can find anything strange.
as we've already said.... GTK is not GTK2, i've no idea what you've done to maange to get it to try to compiile with gtk2, but it will never ever ever work, as they are different libraries, NOT just a newer version.
the developement version of gimp, 1.3.x IS for gtk2 if you desperatley want to use gtk2 as much as it seems.
I think I get it now, forgive me for my stupidity. To correct my problem I should just install a version of GTK which is just the newest 1.2.x? Thanks, guys, that pretty much clears it up.
In that case then, if I choose to remove GTK2, to remove an installation from source, I just delete the directories created?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.