pygobject-2.28.6无法配置:找不到软件包'gobject-introspection-1.0',我该如何解决? [英] pygobject-2.28.6 won't configure: No package 'gobject-introspection-1.0' found, how do I resolve?

查看:808
本文介绍了pygobject-2.28.6无法配置:找不到软件包'gobject-introspection-1.0',我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使pygobject-2.28.6在cygwin中进行编译(存储库中的版本为2.28.4,存在一些问题).这是./configure的结尾:

I'm trying to get pygobject-2.28.6 to compile in cygwin (version in repository is 2.28.4 which has some issues). Here is the tail of ./configure:

checking for GLIB - version >= 2.24.0... yes (version 2.34.3)
checking for ffi... checking for FFI... yes
checking for GIO... yes
checking for GIOUNIX... yes
checking for GI... no
configure: error: Package requirements (glib-2.0 >= 2.24.0
        gobject-introspection-1.0 >= 0.10.2
    ) were not met:

No package 'gobject-introspection-1.0' 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 GI_CFLAGS
and GI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我安装了gobject-introspection 1.34.2-3.如此处所示:

I have gobject-introspection 1.34.2-3 installed. As seen here:

$ whereis gobject-introspection
gobject-introspection: /lib/gobject-introspection /usr/lib/gobject-introspection

在这里

$ whereis gobject-introspection-1.0
gobject-introspection-1: /usr/share/gobject-introspection-1.0

我尝试将configure =中的GI_CFLAGS和GI_LIBS设置为/lib/和/usr/lib/(甚至是/usr/share/),但无济于事.我还能做些什么来解决这个问题?谢谢您的时间!

I've tried setting GI_CFLAGS and GI_LIBS in configure = to /lib/ and /usr/lib/ (and even /usr/share/) but to no avail. What else can I do to try and resolve this? Thank you for your time!

推荐答案

您可能缺少开发包.程序包名称因发行版本而异,但其中包含/usr/lib/pkgconfig/gobject-introspection-1.0.pc(对于某些64位发行版,则为/usr/lib64/pkgconfig/gobject-introspection-1.0.pc):

You're probably missing the development package. The package name varies by distribution, but it's the one containing /usr/lib/pkgconfig/gobject-introspection-1.0.pc (or /usr/lib64/pkgconfig/gobject-introspection-1.0.pc for some 64-bit distros):

  • Fedora,CentOS,RHEL,: gobject-introspection-devel
  • Debian,Ubuntu,Mint,: libgirepository1.0-dev
  • Arch: gobject-introspection
  • FreeBSD: gobject-introspection
  • Cygwin: libgirepository1.0-devel
  • msys2: mingw-w64-x86_64-gobject-introspection 和/或 mingw-w64-i686-gobject-introspection
  • Fedora, CentOS, RHEL, etc.: gobject-introspection-devel
  • Debian, Ubuntu, Mint, etc.: libgirepository1.0-dev
  • Arch: gobject-introspection
  • FreeBSD: gobject-introspection
  • Cygwin: libgirepository1.0-devel
  • msys2: mingw-w64-x86_64-gobject-introspection and/or mingw-w64-i686-gobject-introspection

这篇关于pygobject-2.28.6无法配置:找不到软件包'gobject-introspection-1.0',我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆