LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-08-2003, 06:42 PM   #1
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Rep: Reputation: 15
Gimp1.2.4 install issue with GTK-2.2


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.
 
Old 06-08-2003, 09:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

Cheers,
Tink
 
Old 06-09-2003, 07:50 PM   #3
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
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.

Last edited by GabeF; 06-09-2003 at 08:03 PM.
 
Old 06-10-2003, 06:46 PM   #4
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
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?
 
Old 06-11-2003, 01:24 PM   #5
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
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:

[root@localhost /root]# GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`; \
> GTK_LIBS=`pkg-config --libs gtk+-2.0`; \
> GLIB_CFLAGS=`pkg-config --cflags glib-2.0`; \
> GLIB_LIBS=`pkg-config --libs glib-2.0`;

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.

Any more help would be greatly appreciated
 
Old 06-11-2003, 01:32 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 06-11-2003, 03:04 PM   #7
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
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?

Last edited by GabeF; 06-11-2003 at 03:15 PM.
 
  


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
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
GTK+/Glib issue Iainmc Linux - Newbie 4 03-09-2005 04:50 AM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
gtk-2.0 themes, enlightenment/eterm issue Aman9090 Linux - Software 1 02-01-2004 10:10 PM
GIMP1.1 plugins on 1.2? canon Linux - Software 0 02-27-2003 07:05 PM


All times are GMT -5. The time now is 01:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration