Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: ftp.cica.es
 * extras: ftp.cica.es
 * updates: centos.aol.in
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         : http://www.gtk.org
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

1 Answer 1

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. –  DragonLord Mar 25 '12 at 13:40

Your Answer

 
discard

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.