configure script says dbus not installed (but it is)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rmbjr60
Level 1
Level 1
Posts: 23
Joined: Sun Feb 18, 2018 3:33 pm

configure script says dbus not installed (but it is)

Post by rmbjr60 »

Just getting back into building apps from source after several years. First snag is the same issue I used to get all the time when attempting to use configure and make to install from source (and the main reason I have avoided installing in this manner for such a long time!): the configure script errors out because a required package doesn't appear to be installed when, in fact, it is already installed.

It seems like a version mismatch, but does that mean I need to downgrade the required package to match the configure script's requirement? Or, manually edit the configure script to look for the version I have installed?

Or is the problem related to this: the configure error message suggests checking PKG_CONFIG_PATH to make sure it has the path containing dbus-1.pc. However the *only* .pc file for *anything* dbus on my entire system is this one:

Code: Select all

-rw-r--r-- 1 root root 288 2016-01-21 00:18:51 /usr/lib/pkgconfig/dbus-python.pc
.. does that mean my installation of dbus is corrupt? I tried reinstalling it with apt-get and it only told me that I already have the latest version.

Here's my configure output..

Code: Select all

# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
configure: Configuring for plain GTK+
checking for PACKAGE... yes
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
checking for UNITY... no
configure: error: Package requirements (dee-1.0
		dbusmenu-glib-0.4
		unity) were not met:

No package 'dee-1.0' found
No package 'dbusmenu-glib-0.4' found
No package 'unity' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables UNITY_CFLAGS
and UNITY_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

And here are all the dbus-related packages I already have installed..

Code: Select all

# aptitude -F "%p %v" search "?installed" |grep -i dbus
dbus                                                              1.10.6-1ubuntu
dbus-x11                                                          1.10.6-1ubuntu
gir1.2-dbusmenu-glib-0.4                                          16.04.1+16.04.
libdbus-1-3                                                       1.10.6-1ubuntu
libdbus-glib-1-2                                                  0.106-1       
libdbus-glib2.0-cil                                               0.6.0-1build1 
libdbus2.0-cil                                                    0.8.1-2       
libdbusmenu-glib4                                                 16.04.1+16.04.
libdbusmenu-gtk3-4                                                16.04.1+16.04.
libdbusmenu-gtk4                                                  16.04.1+16.04.
libdbusmenu-qt2                                                   0.9.3+16.04.20
libnet-dbus-perl                                                  1.1.0-3build1 
libnih-dbus1                                                      1.0.3-4.3ubunt
libqt4-dbus                                                       4:4.8.7+dfsg-5
libqt5dbus5                                                       5.5.1+dfsg-16u
libqtdbus4                                                        4:4.8.7+dfsg-5
python-dbus                                                       1.2.0-3       
python-dbus-dev                                                   1.2.0-3       
python-qt4-dbus                                                   4.11.4+dfsg-1b
python3-dbus                                                      1.2.0-3       
qdbus                                                             4:4.8.7+dfsg-5
and these are the dbus-related items in my configure script..

Code: Select all

# grep -i dbus configure
		DBUSSERVICEDIR="${datadir}/dbus-1/services/"
		DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
		dbusmenu-glib-0.4
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Software & Applications”