Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to build and install Bluez

📅 2017-Jun-05 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ bluetooth, bluez ⬩ 📚 Archive

Bluez is the default Bluetooth protocol stack on Linux. It should be present and installed on your Linux distribution. If not, building and installing from source is not too difficult:

$ sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev

If you do not install the libdbus-1-dev, you will later get this strange error:

configure: error: D-Bus >= 1.6 is required
$ ./configure

This gave an error about systemd, which is not present on the relatively old Ubuntu I was on:

checking systemd system unit dir... configure: error: systemd system unit directory is required

So, I ran configure disabling systemd:

$ ./configure --disable-systemd
$ make
$ sudo make install

Tried with: Bluez 5.45 and Ubuntu 14.04

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email