LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-07-2002, 05:55 AM   #1
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
gtk-config and glib-config scripts not found?


i am running configure for one the the apps i am trying to build and i am getting these warnings:

checking whether GTK UI requested... yes
checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: warning: GTK+ not found. Reverting to Xlib UI

and

checking for glib-config... (cached) no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: warning: glib not found - using internal replacement

now i have all the libglib/libgtk and the dev versions installed what does it think i dont have? what about those env variables? how exactly do i create those?
 
Old 11-07-2002, 06:54 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well if they aren't in your path and not in the default locations either then you could try setting the environment variables as follows:

export GTK_CONFIG=/otherlocation/gtk-config
export GLIB_CONFIG=/otherlocation/glib-config

You could try the command 'locate gtk-config' to find out where they are installed.
 
Old 11-07-2002, 07:05 AM   #3
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
yeah they dont exist. so what the hell do they belong to?
 
Old 11-07-2002, 12:38 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
gtk-devel
glib-devel
 
1 members found this post helpful.
Old 11-08-2002, 03:55 AM   #5
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
i use debian and i can only find packages for redhat for those two names. *sigh* all i want to do is a simple configure why does it make it so difficult for me sometimes?
 
Old 11-09-2002, 05:20 PM   #6
greennick
Member
 
Registered: Aug 2002
Location: san jose, CA
Distribution: SuSE 8.1, 64Studio Debian
Posts: 31

Rep: Reputation: 15
I have the same problem over here, using SuSE 7.3. GTK's obviously required for just about everything under the sun I could even think of trying to install, and ./configure fails for everything. I've installed every package I could find on the GTK website, including glib 2.0.4, gtk 2.0.5, atk 1.0.1, pango 1.0.3, and ALL the associated -devel packages for those.

Still, gtk-config does not exist on my machine (did an updatedb and locate found nothing), closest I get is one /usr/lib/gtk-2.0/include/gdkconfig.h. Argh!

What am I missing? Any suggestions? Thanks!
 
Old 11-09-2002, 05:27 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need gtk1.2 not 2.0. 2.0 uses a different configuration system.
 
Old 11-09-2002, 05:47 PM   #8
greennick
Member
 
Registered: Aug 2002
Location: san jose, CA
Distribution: SuSE 8.1, 64Studio Debian
Posts: 31

Rep: Reputation: 15
So I should NOT be using the newest version? Alright, I wonder why.

Should I uninstall all the gtk2 stuff? The gtk 1.2 and glib 1.2.8 packages say they conflict with the newer stuff.
 
Old 11-09-2002, 05:49 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
both versiona of gtk run fine side by side. gtk2 is new, and developed inline with gnome2. most gtk based apps are only compatible with the previous version of gtk, whose API has been stable for about 4 years, as opposed to 4 months...
 
Old 11-11-2002, 02:56 AM   #10
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
thanks for that. i went to gtk.org and downloaded the source of gtk1.2 and glib1.2 and its now working fine (had to do a bit of tweaking though as i had two versions of gtk and glib-config) i just deleted the older version.
 
Old 11-12-2002, 01:23 AM   #11
greennick
Member
 
Registered: Aug 2002
Location: san jose, CA
Distribution: SuSE 8.1, 64Studio Debian
Posts: 31

Rep: Reputation: 15
So how do I get these different versions of things to coexist?

Trying to install gtk+ 1.2.8 fails for dependencies, saying gkrellm and libglade need gtk+. Trying to install gtk+-devel fails for need of glib-devel, and installing glib-devel conflicts with glib2-devel, so no one's happy. Thanks for your enormous help!
 
Old 11-12-2002, 02:09 AM   #12
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
best to get the source and compile that way, which is what i did in the end, dont bother with redhat packages.
 
Old 11-12-2002, 10:51 AM   #13
greennick
Member
 
Registered: Aug 2002
Location: san jose, CA
Distribution: SuSE 8.1, 64Studio Debian
Posts: 31

Rep: Reputation: 15
Thanks soooo much....yes, once again the simplest answers are often the best - it's nice when things finally work after weeks of frustration! (glib and gtk installed fine, gtk-gnutella did too and qt & scribus are on their way)
 
Old 06-19-2004, 04:21 AM   #14
Daniel Phillips
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
"once again the simplest answers are often the best"

Or even more simply: tell ./configure to use gtk2 instead of gtk1.something. I did
this by changing

_PLATFORM_DEFAULT_TOOLKIT=gtk

to

_PLATFORM_DEFAULT_TOOLKIT=gtk2

in ./configure.

Good luck,

Daniel
 
Old 06-21-2004, 02:41 AM   #15
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
Daniel> is this a winner for the longest running thread?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk-config was not found in your $PATH eerf Debian 1 01-19-2005 03:47 AM
glib-config: command not found allendefall Linux - Software 8 12-25-2004 12:23 AM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 02:58 PM
Cannot find gtk-config and glib-config NOT_Skeletor Linux - Software 3 06-27-2003 09:39 AM
missing gtk & glib - config elite Linux - Newbie 2 04-12-2002 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration