LinuxQuestions.org
Review your favorite Linux distribution.
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 04-26-2003, 09:15 PM   #1
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Rep: Reputation: 15
GTK environment configuration


Hi everyone,
Yet again I am lost. I was trying to install a newer version of Mozilla and got this error msg:

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.
*** GTK+ is available from ftp://ftp.gtk.org/pub/gtk
configure: error: Test for GTK failed.

From what I understand, this needs gtk1 to work. So I downloaded gtk1 and glib for it, (I installed glib) and got this error msg:

checking for glib-config... /usr/local/bin/glib-config
checking for GLIB - version >= 1.2.2...
*** 'glib-config --version' returned 1.2.2, but GLIB (1.2.10)
*** was found! If glib-config was correct, then it is best
*** to remove the old version of GLIB. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If glib-config was wrong, set the environment variable GLIB_CONFIG
*** to point to the correct copy of glib-config, and remove the file config.cache
*** before re-running configure
no
configure: error:
*** GLIB 1.2.2 or better is required. The latest version of GLIB

what did I do wrong? Help greatly appreciated, thanks in advance. And if I need to uninstall glib 1.2.10 please tell me how because I tried to find it and couldn't. Thanks again!
 
Old 04-27-2003, 04:12 AM   #2
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 to have the gtk-devel package installed to compile the programs. not sure why you're trying to use source though.. use rpm's until you're more comfortable with linux as a whole.

as for glib though... what version DID you install? 1.2.2 or 1.2.10? if you run "rpm -qa | grep glib" you'll presumably see glib-1.2.2 and glib-devel-1.2.10 or the other way round,....
 
Old 04-27-2003, 08:03 AM   #3
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Hi Chris, you're always quick to the rescue, I really appreciate that
Here's what I get:

[hex@localhost hex]$ rpm -qa | grep glib
libglib1.2-1.2.10-6mdk
glibc_lsb-2.2.90-11mdk
glibc-devel-2.2.5-16mdk
glibc-2.2.5-16mdk
libglib2.0_0-2.0.6-2mdk

Weird.. why was it telling me it "found glib version 1.2.10" hehe I will never understand the inner "wisdom" behind linux I guess..
Okay I now need to download the version 1 .2..2 of these obviously.. I'll do that and let you know what happens. Thanks yet once again!
 
Old 04-27-2003, 09:29 AM   #4
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Exclamation HELP!

Okay I installed newer glib :

[hex@localhost hex]$ rpm -qa | grep glib
libglib1.2-1.2.10-6mdk
glibc_lsb-2.2.90-11mdk
glibc-devel-2.2.5-16mdk
glib-devel-1.2.3-2mdk
glibc-2.2.5-16mdk
libglib2.0_0-2.0.6-2mdk
glib-1.2.3-2mdk

GTK+ won't install .. same error msg:

*** 'glib-config --version' returned 1.2.3, but GLIB (1.2.10)
*** was found! If glib-config was correct, then it is best
*** to remove the old version of GLIB.
bla bla bla

(I ran ldconfig)

Last edited by Womandrake; 04-27-2003 at 09:31 AM.
 
Old 04-28-2003, 09:17 AM   #5
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
You need the gtk-devel packages for GTK1.

We've been through this before I think - remember, when compiling from source, you need package foo AND the package foo-devel (RPMs don't have that requirement).

In general a "foo-config is missing" error or a pkgconfig failure means, install the -devel package!
 
Old 04-30-2003, 01:27 PM   #6
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Oops didn't know that! Thanks very much indeed Mike
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
GTK error when starting gtk-chtheme Dswissmiss Linux - Software 1 10-01-2004 11:53 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

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

All times are GMT -5. The time now is 08:17 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