1

我尝试编译使用 gtk3 的代码,但出现以下错误:

make: glib-compile-resources: Command not found

我正在使用软呢帽。我搜索了文件“glib-compile-resources”,但它在我的计算机中不存在。

此文件应包含在 glib2 中(根据:https ://www.archlinux.org/packages/core/i686/glib2/ )。

我安装了所有这些软件包:

rpm -qa | grep -i ^glib
glib-1.2.10-34.fc15.x86_64
glib-networking-2.28.6.1-2.fc15.x86_64
glibmm24-2.28.1-1.fc15.x86_64
glib2-static-2.28.8-1.fc15.x86_64
glibc-utils-2.14.1-6.x86_64
glibc-headers-2.14.1-6.x86_64
glibc-common-2.14.1-6.x86_64
glib-devel-1.2.10-34.fc15.x86_64
glib2-2.28.8-1.fc15.i686
glibc-2.14.1-6.i686
glibc-static-2.14.1-6.x86_64
glib2-devel-2.28.8-1.fc15.x86_64
glib2-2.28.8-1.fc15.x86_64
glibc-devel-2.14.1-6.x86_64
glibc-2.14.1-6.x86_64

rpm -qa | grep -i ^gtk
gtksourceview3-3.0.5-1.fc15.x86_64
gtk2-immodule-xim-2.24.7-3.fc15.x86_64
gtkglext-libs-1.2.0-14.fc15.x86_64
gtk2-2.24.7-3.fc15.x86_64
gtkmm30-3.0.1-1.fc15.x86_64
gtkmm24-2.24.0-3.fc15.x86_64
gtk3-3.0.12-1.fc15.x86_64
gtk2-devel-2.24.7-3.fc15.x86_64
gtk3-immodule-xim-3.0.12-1.fc15.x86_64
gtk+-1.2.10-71.fc15.x86_64
gtk2-engines-2.20.2-2.fc15.x86_64
gtk-vnc2-0.4.3-1.fc15.x86_64
gtk3-devel-3.0.12-1.fc15.x86_64
gtkmm-utils-0.4.1-3.fc15.x86_64
gtkhtml3-4.0.2-1.fc15.x86_64

我想更新 glib,但我不知道该怎么做。我尝试使用 (yum update glibc-*) 但它显示如下:

yum update glib-*
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Update Process
No Packages marked for Update
4

1 回答 1

6

您的 yum update 命令中缺少星号。另外,我会删除连字符:

yum update glib* 

具体来说,glib-compile-resources是由glib2-devel包提供的(注意你只glib-devel安装了)。

我的 Fedora 19 机器的输出:

[root@some-machine ~]# yum provides glib-compile-resources
Loaded plugins: langpacks, refresh-packagekit
glib2-devel-2.36.3-2.fc19.i686 : A library of handy utility functions
Repo        : fedora
Matched from:
Filename    : /usr/bin/glib-compile-resources



glib2-devel-2.36.3-2.fc19.x86_64 : A library of handy utility functions
Repo        : fedora
Matched from:
Filename    : /usr/bin/glib-compile-resources



glib2-devel-2.36.3-3.fc19.i686 : A library of handy utility functions
Repo        : updates
Matched from:
Filename    : /usr/bin/glib-compile-resources



glib2-devel-2.36.3-3.fc19.x86_64 : A library of handy utility functions
Repo        : updates
Matched from:
Filename    : /usr/bin/glib-compile-resources



glib2-devel-2.36.3-3.fc19.x86_64 : A library of handy utility functions
Repo        : @updates
Matched from:
Filename    : /usr/bin/glib-compile-resources
于 2013-10-06T08:52:39.247 回答