LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-21-2005, 01:38 AM   #1
invinciblegod
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
gtk ./configure error


I get this when i ./configure dx4 in SUSE 9.2:

checking for GTK+ - version >= 2.4.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.6.8, but GTK+ (2.4.9)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. 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 pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: *** GTK >= 2.4.0 not installed! ***
how do i fix this?

Last edited by invinciblegod; 07-21-2005 at 12:09 PM.
 
Old 07-21-2005, 04:28 PM   #2
invinciblegod
Member
 
Registered: Dec 2003
Posts: 51

Original Poster
Rep: Reputation: 15
anyone?
 
Old 07-21-2005, 04:49 PM   #3
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
checking for GTK+ - version >= 2.4.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.6.8, but GTK+ (2.4.9)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. 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 pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
What do you need help with? It tells you what the problem is. Where is your gtk lib installed? My guess is that you installed gtk in /usr/local, but your PKG_CONFIG_PATH has /usr before /usr/local. But that's just my
 
Old 07-21-2005, 07:43 PM   #4
invinciblegod
Member
 
Registered: Dec 2003
Posts: 51

Original Poster
Rep: Reputation: 15
Thx I went there and it really is 2.4.0 because the path is "file:/usr/local/lib/gtk-2.0/2.4.0". How do i fix this? It was probably orginally 2.4.0 and i installed 2.6.8 and it didnt delete the orginal? If so, where is 2.6.8? I am a linux newbie so i dont know how to fix this. Please help!
 
Old 07-22-2005, 09:50 AM   #5
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by invinciblegod
Thx I went there and it really is 2.4.0 because the path is "file:/usr/local/lib/gtk-2.0/2.4.0".
Very good. You have confirmed what the configure script already told you: you have gtk 2.4.0 installed on your system.
Quote:
Originally posted by invinciblegod
How do i fix this?
First you need to figure out what needs fixing.
Quote:
Originally posted by invinciblegod
It was probably orginally 2.4.0 and i installed 2.6.8 and it didnt delete the orginal?
No, you can have both packages installed so long as your paths are setup correctly. Generally speaking, software in linux is more difficult to uninstall than on Windows because many packages don't come with an uninstaller.
Quote:
Originally posted by invinciblegod
If so, where is 2.6.8?
You tell me. Where did you install it when you built it? Did you build it from source or use a binary distribution (e.g. .deb or .rpm)? If you built it from source, what has your ./configure line?
 
Old 07-23-2005, 12:19 AM   #6
invinciblegod
Member
 
Registered: Dec 2003
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by TruckStuff
If you built it from source, what has your ./configure line?
I built it from source. Also, I have no idea what the above means.
 
Old 07-23-2005, 09:54 AM   #7
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Quote:
Originally posted by invinciblegod
I built it from source. Also, I have no idea what the above means.
When you built your gtk, you head to configure the source before building the libraries. Your installation process looked something like
Code:
# cd gtk+-x.y.z
# ./configure
# make
# make install
What were your switches on the ./configure line? cd to the source directory for gtk 2.6.8 and run the following:
Code:
# head config.log
That will tell you the first few lines of the log from your last config (which hopefully is the one that you built from). It will tlel you what theexact config line was when you built gtk. Post it here.
 
Old 07-24-2005, 02:09 AM   #8
invinciblegod
Member
 
Registered: Dec 2003
Posts: 51

Original Poster
Rep: Reputation: 15
I just installed 2.4.0 again and it fixed all the paths. Thx anyway. Its not like any programs acutally need the newest version anyway...
 
  


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
Help!!! I can't resolve a gtk+ 2.4.7 configure error RJARRRPCGP Linux - Newbie 1 11-22-2004 02:08 AM
./configure gtk error or3st3s Mandriva 2 08-14-2004 01:21 PM
GTK+ 2.4.4 configure error NoxVampyre Linux - Software 9 08-04-2004 06:56 PM
gtk+-2.2.3 configure error. eye Linux - Software 7 11-20-2003 08:21 AM
can't configure GTK!-gtk-gnutella ogkyusa Linux - Software 2 08-09-2003 04:38 PM

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

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