简体   繁体   English

找不到软件包'gdk-pixbuf-2.0'

[英]No package 'gdk-pixbuf-2.0' found

I am trying to build librsvg on an Amazon Linux distro instance. 我正在尝试在Amazon Linux发行版实例上构建librsvg。 I've install most of the dependencies via yum. 我已经通过yum安装了大多数依赖项。 There where a few that where not available in the default yum repo's enabled on the instance so had to build them from scratch. 实例中启用了默认yum repo的一些地方不可用,因此必须从头开始构建它们。 I've got pretty far but am stuck on one final bit. 我已经走得很远,但最后一刻被卡住了。 When running sudo ./configure for librsvg I get No package 'gdk-pixbuf-2.0' found . 当为librsvg运行sudo ./configureNo package 'gdk-pixbuf-2.0' found I did get this message originally for some of the packages I installed via yum and installing the -dev version of those libs solved my problem. 我确实收到了我通过yum安装的某些软件包的消息,并安装了这些库的-dev版本解决了我的问题。 Currently gdk-pixbuf-2.0 is the only lib I install from source. 目前gdk-pixbuf-2.0是我从源代码安装的唯一lib。

Here are the results of pkg-config for the missing lib: 这是缺少的库的pkg-config结果:

$ pkg-config --list-all | grep pixbuf
> gdk-pixbuf-2.0        GdkPixbuf - Image loading and scaling
$ pkg-config --modversion pixbuf
> 2.26.1
  1. Why is this package not being found? 为什么找不到此软件包?
  2. What do the -dev/-devel packages usually install/configure? -dev / -devel软件包通常安装/配置什么?
  3. Are there any other environment coming into play? 还有其他环境在起作用吗? ie LD_LIBRARY_PATH, CPPFLAGS, LDFLAGS 即LD_LIBRARY_PATH,CPPFLAGS,LDFLAGS
  4. Am I missing a step in my build steps which would register this package/lib properly? 我是否在构建步骤中缺少可以正确注册此软件包/库的步骤?

运行pkg-config --libs gdk-pixbuf-2.0pkg-config --cflags gdk-pixbuf-2.0但缺少某些其他软件包,而gdk-pixbuf-2.0则需要该软件包,而pkg-config报告错误,但没有configure列出所有软件包时向您提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM