You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CentOS 6.9编译cups-filters-1.14.0时如何安装gdbus-codegen?

解决CentOS 6编译cups-filters-1.14.0时gdbus-codegen缺失的问题

我之前在CentOS 6上编译cups-filters-1.14.0的时候也碰到过一模一样的问题!你遇到的报错是因为系统缺少gdbus-codegen工具,它是生成DBus接口代码的必备组件,属于glib2开发包的一部分。

先看一下你遇到的具体报错:

gdbus-codegen \
--interface-prefix org.cups.cupsd \
--c-namespace Cups \
--generate-c-code cups-notifier \
utils/org.cups.cupsd.Notifier.xml
make: gdbus-codegen: Command not found
make: *** [cups-notifier.c] Error 127

解决步骤很直接,用yum安装对应的依赖包即可:

sudo yum install glib2-devel

安装完成后,回到cups-filters的编译目录重新执行make,应该就能顺利继续编译了。如果安装后还是提示找不到工具,可以检查一下环境变量,确保/usr/bin在你的PATH路径中,gdbus-codegen默认会安装到这个目录下。

内容的提问来源于stack exchange,提问作者leonardorame

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 09:02:34