首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pygobject-2.28.6不会配置:没有包‘gobject-内省-1.0’找到,我如何解决?

pygobject-2.28.6不会配置:没有包‘gobject-内省-1.0’找到,我如何解决?
EN

Stack Overflow用户
提问于 2013-08-02 20:37:54
回答 5查看 27K关注 0票数 55

我试图让pygobject-2.28.6在cygwin中编译(存储库中的版本是2.28.4,这有一些问题)。下面是./配置的尾部:

代码语言:javascript
复制
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.

我已经安装了自省1.34.2-3。如图所示:

代码语言:javascript
复制
$ whereis gobject-introspection
gobject-introspection: /lib/gobject-introspection /usr/lib/gobject-introspection

还有这里

代码语言:javascript
复制
$ whereis gobject-introspection-1.0
gobject-introspection-1: /usr/share/gobject-introspection-1.0

我尝试过在配置= to /lib/和/usr/lib/ (甚至/usr/ GI_LIBS /)中设置GI_LIBS和GI_LIBS,但都没有效果。我还能做些什么来解决这个问题呢?谢谢您抽时间见我!

EN

回答 5

Stack Overflow用户

回答已采纳

发布于 2013-08-02 22:58:52

你可能错过了开发包。包名因发行版而异,但它包含/usr/lib/pkgconfig/gobject-introspection-1.0.pc (或64位发行版的/usr/lib64/pkgconfig/gobject-introspection-1.0.pc ):

  • 软呢帽、gobject-introspection-devel、CentOS、RHEL等
  • Debian,Ubuntu,Mint等:libgirepository1.0-dev
  • Arch:gobject-introspection
  • gobject-introspection:FreeBSD
  • Cygwin:libgirepository1.0-devel
  • mingw-w64-x86_64-gobject-introspection和/或mingw-w64-i686-gobject-introspection
票数 90
EN

Stack Overflow用户

发布于 2014-01-16 12:19:20

我要把这个写在cygwin上。您需要的包是:libgirepository1.0-devel

在Ubuntu中,它被称为libgirepository1.0-dev

票数 18
EN

Stack Overflow用户

发布于 2016-12-08 18:45:33

我没有足够的代表对此发表评论,所以这是对尼米库回答的补充:

  • mingw-w64-x86_64-gobject-introspection和/或mingw-w64-i686-gobject-introspection
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18025730

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档