配置:错误:未满足包要求。但我已经在我的系统中安装了这些软件包

配置:错误:未满足包要求。但我已经在我的系统中安装了这些软件包
[root@localhost rpm-ostree]# ./configure 
checking for library containing rpmsqSetInterruptSafety... no
checking for PKGDEP_GIO_UNIX... yes
checking for PKGDEP_RPMOSTREE... no
configure: error: Package requirements (gio-unix-2.0 >= 2.40.0 json-glib-1.0
                     ostree-1 >= 2015.1 libgsystem >= 2015.1
                     rpm hawkey libhif >= 0.2.0) were not met:

No package 'json-glib-1.0' found
No package 'ostree-1' found
No package 'libgsystem' found
No package 'rpm' found
No package 'hawkey' found
No package 'libhif' 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 PKGDEP_RPMOSTREE_CFLAGS
and PKGDEP_RPMOSTREE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

[root@localhost rpm-ostree]# dnf install rpm hawkey libhif libgsystem ostree json-glib
Last metadata expiration check performed 0:10:52 ago on Mon Oct 26 10:33:32 2015.
Package rpm-4.12.0.1-9.fc22.ppc64le is already installed, skipping.
Package hawkey-0.5.6-1.fc22.ppc64le is already installed, skipping.
Package libhif-0.2.0-3.fc22.ppc64le is already installed, skipping.
Package libgsystem-2015.1-2.fc22.ppc64le is already installed, skipping.
Package ostree-2015.6-2.fc22.ppc64le is already installed, skipping.
Package json-glib-1.0.4-1.fc22.ppc64le is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

答案1

这基本上与问题中的错误类别相同尝试自动制作 gnome 终端。您需要安装 -devel 软件包,其中包含所需的头文件和库存根建筑使用这些库的代码。

在我看来,该书的作者您似乎正在尝试构建的软件应该提供一个 RPM 构建规范声明其构建依赖项,特别是因为该软件设计为与 RPM 一起使用。如果软件附带一个规格文件,那么你可以运行dnf builddep rpm-ostree.spec然后rpmbuild -ba rpm-ostree.spec。这是您提出增强请求或贡献 RPM 打包的机会。

相关内容