找不到软件包'gdk

编程入门 行业动态 更新时间:2024-10-19 14:39:41
本文介绍了找不到软件包'gdk-pixbuf-2.0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在Amazon Linux发行版实例上构建librsvg.我已经通过yum安装了大多数依赖项.实例中启用了默认yum repo的一些地方不可用,因此必须从头开始构建它们.我已经走得很远了,但仍停留在最后一点.当为librsvg运行sudo ./configure时,我得到No package 'gdk-pixbuf-2.0' found.我确实收到了我通过yum安装的某些软件包的消息,并安装了这些库的-dev版本解决了我的问题.目前gdk-pixbuf-2.0是我从源代码安装的唯一lib.

I am trying to build librsvg on an Amazon Linux distro instance. I've install most of the dependencies via 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. 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. 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. Currently gdk-pixbuf-2.0 is the only lib I install from source.

以下是缺少的lib的pkg-config结果:

Here are the results of pkg-config for the missing lib:

$ pkg-config --list-all | grep pixbuf > gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling $ pkg-config --modversion pixbuf > 2.26.1

  • 为什么找不到此软件包?
  • -dev/-devel软件包通常安装/配置什么?
  • 还有其他环境在起作用吗?即LD_LIBRARY_PATH,CPPFLAGS,LDFLAGS
  • 我在构建步骤中缺少一个可以正确注册此软件包/库的步骤吗?
  • 推荐答案

    运行pkg-config --libs gdk-pixbuf-2.0和pkg-config --cflags gdk-pixbuf-2.0缺少某些其他程序包,并且gdk-pixbuf-2.0需要该程序包,并且pkg-config将错误报告给configure,但是列出所有软件包时不对您开放.

    Run pkg-config --libs gdk-pixbuf-2.0 and pkg-config --cflags gdk-pixbuf-2.0 some other package is missing and is required by gdk-pixbuf-2.0 and pkg-config is reporting the error to configure but not to you when listing all packages.

    更多推荐

    找不到软件包'gdk

    本文发布于:2023-07-04 17:18:00,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1026992.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:找不到   软件包   gdk

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!