找不到“pygobject-3.0”软件包。

10

我想安装 Accerciser 我的操作系统是 Fedora 16 我下载了这个软件包, 'cd' 进入该文件夹 然后运行 './configure' 得到以下结果

checking for PYGOBJECT... no
configure: error: Package requirements (pygobject-3.0 >= PYGOBJECT_REQUIRED) were not met:

No package 'pygobject-3.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 PYGOBJECT_CFLAGS and PYGOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

然而,我检查过了,似乎我已经安装了pygobject 3,那么该如何解决这个问题呢?谢谢!

[root@kit accerciser-3.5.3]# rpm -qa|grep "pygobject"
pygobject2-codegen-2.28.6-2.fc16.x86_64
pygobject3-3.0.3-1.fc16.x86_64
pygobject2-devel-2.28.6-2.fc16.x86_64
pygobject2-2.28.6-2.fc16.x86_64
pygobject2-doc-2.28.6-2.fc16.x86_64

应该迁移到SuperUser网站 http://superuser.com/ - Samuele Mattiuzzo
非常有用的问题(解决了我的问题)- 应该移动到适当的网站,然后重新打开。 - David Refoua
1个回答

14

安装pygobject3-devel软件包。


2
当我编译最新的mypaint时,遇到了这个问题。我需要安装python-gobject-dev包。 - yuvilio
36
在 Ubuntu 16.04 上,运行以下命令以安装 python-gi-dev:sudo apt install -y python-gi-dev - rofrol
2
我尝试安装python-gi-dev,但它立即在我的系统上安装了Python 2.7。这是古董版本,我不想要它。同样的情况也出现在python-gobject-2-dev上,它是python-gobject-dev的替代品。这些评论都是今年的,为什么它们提到如此过时的Python版本? - AlastairG
1
我在 Ubuntu 20.04 上使用 apt-cache dotty python-gi-dev 检查了 python-gi-dev 的依赖项,但并未看到与 Python 2.7 相关的引用。安装 python-gi-dev 解决了“pygobject-3.0未找到”的问题。 - Enterprise
4
在Ubuntu 18.04上,通过运行sudo apt install -y python-gi-dev来解决此问题,谢谢。 - Attila123
显示剩余4条评论

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接