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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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,
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,
/usr/local/include/gtk-2.0/gdk/gdktypes.h:33:25: pango/pango.h: No such file or
In file included from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4,
/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,
/usr/local/include/gtk-2.0/gdk/gdkfont.h:7:30: pango/pango-font.h: No such file
In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:34,
/usr/local/include/gtk-2.0/gtk/gtkstyle.h:33:25: pango/pango.h: No such file or
In file included from /usr/local/include/gtk-2.0/gtk/gtkmisc.h:32,
/usr/local/include/gtk-2.0/gtk/gtkwidget.h:36:27: atk/atkobject.h: No such file
In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:35,
/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,
/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,
/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,
/usr/local/include/gtk-2.0/gtk/gtkentry.h:35:25: pango/pango.h: No such file or
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?
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.