How to upgrade to the latest BlueZ version on Ubuntu 12.04 LTS?

15,061

Solution 1

Get the latest version from here.

E.G.:

wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.30.tar.xz

Extract

tar xf bluez-5.30.tar.xz

Build

cd bluez-5.30
./configure
make

Then install with

sudo make install

or with checkinstall for a .deb package:

sudo apt-get install checkinstall
sudo checkinstall

Solution 2

For successful build as per @A.B's post, your system should meet following dependencies. I've Ubuntu 14.04.1 / Kernel 3.16.0

apt-get install libglib2.0-dev libdbus-1-dev libudev-dev libical-dev libreadline6 libreadline6-dev

./configure
make
make install

If you get an error while ./configure saying configure: error: systemd system unit directory, try following solution by a user:mrd [original post].

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd
Share:
15,061

Related videos on Youtube

user768421
Author by

user768421

Updated on September 18, 2022

Comments

  • user768421
    user768421 over 1 year

    Ubuntu 12.04 LTS is using BlueZ ver4.98 which is not the latest version. I would like to upgrade to the latest BlueZ version. How can this be done?

  • David Foerster
    David Foerster over 8 years
    You should probably install the dependencies before ./configure-ing the build.
  • Denis The Menace
    Denis The Menace over 7 years
    On Ubuntu 14.04 I had to install packages libreadline6 and libreadline6-dev in addition to given above
  • Peter
    Peter about 7 years
    I'm trying to install 5.44 on a ubuntu-16.04.2 i get no error but the it cant find gatttool even after sudo make install what am i missing? its a live cd if that matters..
  • edge-case
    edge-case over 3 years
    This was useful for Ubuntu 18.04 also, but I had to install dependencies for the ./configure step to work. sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev