欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

安裝dbus-python的簡(jiǎn)要教程

 更新時(shí)間:2015年05月05日 17:29:45   投稿:goldensun  
這篇文章主要介紹了安裝dbus-python的簡(jiǎn)要教程,dbus-python在Python編程中多用于處理進(jìn)程之間的通信,需要的朋友可以參考下

寫一個(gè) python 腳本需要用到 dbus,但因?yàn)?dbus-python 這個(gè)包并沒有提供 setup.py , 所以無法通過 pip 直接安裝,唯有下載源碼手動(dòng)編譯安裝一途了。

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 的過程中,還是出了一些錯(cuò)。

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

然后安裝就就可以順利進(jìn)行了

./configure
make
sudo make install


相關(guān)文章

最新評(píng)論