LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2009, 07:16 AM   #1
Randyqiu
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Unhappy cannot find gtk-config on ubuntu9.04 after installing GTK


Hi,
This is my first time here.
I have installed GTK by "sudo apt-get install gnome-core-devel" and I can build the test-application named "Hello ubuntu" successfully with `pkg-config --cflags --libs gtk+-2.0`.
But when I built an application which needs the GTK's support, it said as follows:

checking for gtk-config... no
checking for GTK - version >= 0.99.7... 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: error: Cannot find proper gtk version
I don't know what's wrong with it,anyone can help me?
Thanks a lot!
 
Old 11-15-2009, 07:46 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
The build seems to be looking for that gtk-config program. You can find what packages provide a given file using the the apt-file command (in the apt-file package).

Cheers,

Evo2.
 
Old 11-17-2009, 09:58 PM   #3
Randyqiu
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by evo2 View Post
The build seems to be looking for that gtk-config program. You can find what packages provide a given file using the the apt-file command (in the apt-file package).

Cheers,

Evo2.
Thank you Evo2.
I have solved this problem.The reason is that I installed the GTK2.X instead of GTK1.X, so the error told me "checking gtk-config ...no" since GTK2 has "pkg-config" and GTK1 has "gtk-config".
 
  


Reply

Tags
gtk


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
where to find gtk-config? kpachopoulos Linux - General 2 09-28-2005 02:54 PM
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
can't find gtk-config Fresha Linux - Software 3 02-21-2004 11:22 AM
configure can't find gtk-config serial Linux - Newbie 2 03-16-2003 05:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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