Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pybluez installation in Linux

Tags:

I am trying to install PyBluez-0.18 on my Linux Mint 15 machine, but got an error message during the installation process. I tried searching online to see if others might have encountered this problem, but I could not find any.

I list the command I tried to execute, along with the error message I received. Could someone tell me what I am doing wrong, and what I need to do to reso

tri108354@prtgc004-Latitude-E6320 ~/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 
like image 847
siva82kb Avatar asked Feb 06 '14 08:02

siva82kb


People also ask

What is PyBluez?

PyBluez is an effort to create python wrappers around system Bluetooth resources to allow Python developers to easily and quickly create Bluetooth applications. PyBluez works on GNU/Linux and Windows XP (Microsoft and Widcomm Bluetooth stacks). It is freely available under the GNU General Public License.

Does PyBluez work on Windows?

Project descriptionPyBluez works with GNU/Linux, macOS, and Windows.


1 Answers

You need to install libbluetooth-dev package for compiling your code

sudo apt-get install libbluetooth-dev 

That should install the bluetooth header files.

like image 198
Rahul R Dhobi Avatar answered Sep 30 '22 17:09

Rahul R Dhobi