尽管已经安装了 GTK,但在编译时仍出现错误 GTK

尽管已经安装了 GTK,但在编译时仍出现错误 GTK

我是一名 Linux 新手,正在尝试编译一个软件但出现错误;

它告诉我 GTK 未安装

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.

但当我检查时,它说它是可用的

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+

描述:GTK+ 是一个用于创建图形用户界面的多平台工具包。GTK+ 提供了一整套小部件,适用于从小型一次性工具到完整应用程序套件的各种项目。

答案1

gtk+ 和 gtk2 是完全不同的软件包。你需要 +

相关内容