Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a linux newbie and trying to compile a software but getting an error;

it is telling me that GTK is not installed

checking for GTK... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

But here when i check, it says it is available

yum info gtk2-2.18.9-6.el6.centos.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository google-chrome is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Installed Packages
Name        : gtk2
Arch        : x86_64
Version     : 2.18.9
Release     : 6.el6.centos
Size        : 12 M
Repo        : installed
From repo   : anaconda-CentOS-201112091719.x86_64
Summary     : The GIMP ToolKit (GTK+), a library for creating GUIs for X
URL         :
License     : LGPLv2+

Description : GTK+ is a multi-platform toolkit for creating graphical user : interfaces. Offering a complete set of widgets, GTK+ is suitable for : projects ranging from small one-off tools to complete application : suites.

share|improve this question
up vote 1 down vote accepted

gtk+ and gtk2 are totally different packages. You need +

share|improve this answer
It seems a package name discrepancy is the cause of the problem. – bwDraco Mar 25 '12 at 13:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.