How to build and install Bluez

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:

  • Download the latest stable source release of Bluez from here. Unzip the compressed file you downloaded.

  • Install the headers and libraries required for Bluez compilation:

$ 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
  • Next configure the Makefile:
$ ./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
  • After that build and install as usual:
$ make
$ sudo make install

Tried with: Bluez 5.45 and Ubuntu 14.04

4 thoughts on “How to build and install Bluez

    1. In my case I fixed it by re-doing the symlink

      sudo cp /usr/lib/bluetooth/bluetoothd /usr/lib/bluetooth/bluetoothd.bak
      sudo ln -sf /usr/libexec/bluetooth/bluetoothd /usr/lib/bluetooth/bluetoothd
      sudo systemctl daemon-reload


  1. Hi All,
    I have bough CSR 5.0 . But unable to work on Linux/Ubuntu.Plase let me know process to make up and working


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.