我试图编译一个使用gtk3的代码,得到以下错误:
make: glib-compile-resources: Command not found
我在用软呢帽。我搜索了文件“GLIB编译资源”,它不存在于我的计算机中。
此文件应包含在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

最佳答案

您的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

关于linux - make:glib-compile-resources:找不到命令,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19204152/

10-15 12:38