源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

安装dbus-python的简要教程

  • 时间:2021-07-08 06:56 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:安装dbus-python的简要教程
写一个 python 脚本需要用到 dbus,但因为 [url=https://pypi.python.org/pypi/dbus-python/0.84.0]dbus-python [/url]这个包并没有提供 setup.py , 所以无法通过 pip 直接安装,唯有[url=https://pypi.python.org/packages/source/d/dbus-python/dbus-python-0.84.0.tar.gz]下载源码[/url]手动编译安装一途了。
wget https://pypi.python.org/packages/source/d/dbus-python/dbus-python-0.84.0.tar.gz
tar zxvf dbus-python-0.84.0.tar.gz
cd dbus-python-0.84.0

但事有不顺,在 ./configure 的过程中,还是出了一些错。
configure: error: Package requirements (dbus-1 >= 1.0) were not met:

No package 'dbus-1' 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 DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

这显然是缺失了依赖库
sudo apt-get install libdbus-glib-1-dev

然后安装就就可以顺利进行了
./configure
make
sudo make install

  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部