10.65. D-Bus-1.8.6

D-Bus is a message bus system, a simple way for applications to talk to one another.

10.65.1. Installation of D-Bus

Prepare D-Bus for compilation:

./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/dbus-1.0 --localstatedir=/var \
    --with-systemdsystemunitdir=/lib/systemd/system \

Compile the package:


This package does come with a test suite, but it requires several packages that are not included in CLFS. Instructions for running the test suite can be found in the CBLFS wiki at http://cblfs.cross-lfs.org/index.php/D-BUS_Core.

Install the package:

make install

Move the shared library to /lib and recreate the symbolic link.

mv -v /usr/lib/libdbus-1.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so

Create a symlink so that D-Bus and systemd can use the same machine-id file:

ln -sv /etc/machine-id /var/lib/dbus

10.65.2. Contents of D-Bus

Installed programs: dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, dbus-send, dbus-uuidgen
Installed libraries: libdbus-1.[a,so]
Installed directories: /etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0, /usr/share/doc/dbus-1.8.6, /var/lib/dbus

Short Descriptions


Cleans up leftover sockets in a directory


The message bus daemon


Utility to generate UUIDs


A debug probe that prints message bus messages


Utility to start a message bus from a shell script


Send a message to a message bus


Library containing the API for using the message bus