JavaEar 专注于收集分享传播有价值的技术资料

No package 'gdk-pixbuf-2.0' found

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.

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
  1. Why is this package not being found?
  2. What do the -dev/-devel packages usually install/configure?
  3. Are there any other environment coming into play? i.e. LD_LIBRARY_PATH, CPPFLAGS, LDFLAGS
  4. Am I missing a step in my build steps which would register this package/lib properly?

1个回答

    最佳答案
  1. 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.