2014-02-06 126 views
16

我想在我的Linux Mint 15机器上安装PyBluez-0.18,但在安装过程中收到错误消息。我尝试在网上搜索,看看其他人是否可能遇到过这个问题,但我找不到。在Linux中安装Pybluez

我列出了我试图执行的命令以及收到的错误消息。有人能告诉我什么,我做错了,什么我需要做的雷索

[email protected] ~/Downloads/PyBluez-0.18 $ python setup.py install 
running install 
running build 
running build_py 
running build_ext 
building 'bluetooth._bluetooth' extension 
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tri108354/anaconda/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o 
In file included from bluez/btmodule.c:20:0: 
bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory 
compilation terminated. 
error: command 'gcc' failed with exit status 1 

回答

39

你需要安装libbluetooth-dev软件包编译代码

sudo apt-get install libbluetooth-dev 

这应该安装蓝牙头文件。