I cannot run configure error: Configure failed with error: dbus-devel not found

Asked by Blanca Mancilla

when running
 $ sh hplip-3.14.4.run
the ./configure ran stops with the error
 error: Configure failed with error: dbus-devel not found

I do have libdbus-1-dev installed.

I'm running ubuntu 14.04. I did install the hplip-3.14.3 using synaptic but the scanner is not working. It is not detected when running xsane.

How can I get the scanner working?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
goutam kodu
Solved:
Last query:
Last reply:
Revision history for this message
goutam kodu (goutam-hplip) said :
#1

Can you provide us the output of 'dpkg --list | grep libdbus-1-dev' and 'cd hplip-3.14.4; ./configure --prefix=/usr'.

Thanks,
Goutam

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#2

 dpkg --list | grep libdbus-1-dev
ii libdbus-1-dev:amd64 1.6.18-0ubuntu4 amd64 simple interprocess messaging system (development headers)

$ ./configure --prefix=/usr
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 for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pthread_create in -lpthread... yes
checking for pow in -lm... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for dlopen in -ldl... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking whether byte ordering is bigendian... no
checking for uint32_t... yes
checking "for platform-dependencies"... "using Default platform.h"
checking for documentation build... yes
checking for hpijs only build... no
checking for lite build... no
checking for hpcups only build... no
checking for hpijs install... no
checking for hpcups install... yes
checking for new hpcups install... no
checking for network build... yes
checking for parallel port build... no
checking for scanner build... yes
checking for gui build... yes
checking for fax build... yes
checking for dbus build... yes
checking for cups 1.1.x build... no
checking for udev sysfs enable rules... no
checking for shadow build... no
checking for libusb-0.1 build... no
checking for foomatic ppd install... no
checking for foomatic drv install... no
checking for cups drv install... yes
checking for cups ppd install... no
checking for foomatic-rip-hplip install... no
checking for qt4... yes
checking for qt3... no
checking for policykit... no
checking for host machine platform... x86_64
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
checking net-snmp/net-snmp-config.h usability... yes
checking net-snmp/net-snmp-config.h presence... yes
checking for net-snmp/net-snmp-config.h... yes
checking for cupsDoFileRequest in -lcups... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking for libusb_init in -lusb-1.0... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for path to Python.h... "using /usr/include/python2.7"
checking python2.7/Python.h usability... yes
checking python2.7/Python.h presence... yes
checking for python2.7/Python.h... yes
checking for sane_open in -lsane... yes
checking for pkg-config... /home/mancilla/current/soft/install/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DBUS... no
configure: error: cannot find dbus-devel support: No package 'dbus-1' found

Revision history for this message
goutam kodu (goutam-hplip) said :
#3

libdbus-1-dev package is installed but libdbus-1.so library might be missing or installed in different location. Can you provide the output of 'locate libdbus-1.so'

Revision history for this message
goutam kodu (goutam-hplip) said :
#4

also post the output of : 'pkg-config --cflags "dbus-1 >= 1.0.0" '

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#5

$ locate libdbus-1.so
/lib/i386-linux-gnu/libdbus-1.so.3
/lib/i386-linux-gnu/libdbus-1.so.3.7.6
/lib/x86_64-linux-gnu/libdbus-1.so.3
/lib/x86_64-linux-gnu/libdbus-1.so.3.7.6
/usr/lib/vmware/lib/libdbus-1.so.3
/usr/lib/vmware/lib/libdbus-1.so.3/libdbus-1.so.3
/usr/lib/vmware-installer/2.1.0/lib/lib/libdbus-1.so.3
/usr/lib/vmware-installer/2.1.0/lib/lib/libdbus-1.so.3/libdbus-1.so.3
/usr/lib/x86_64-linux-gnu/libdbus-1.so

and

$ pkg-config --cflags "dbus-1 >= 1.0.0"
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

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#7

Please reopen. Waiting for solution.
On Jun 5, 2014 5:51 AM, "Launchpad Janitor" <
<email address hidden>> wrote:

> Your question #248426 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/248426
>
> Status: Open => Expired
>
> Launchpad Janitor expired the question:
> This question was expired because it remained in the 'Open' state
> without activity for the last 15 days.
>
> --
> If you're still having this problem, you can reopen your question either
> by replying to this email or by going to the following page and
> entering more information about your problem:
> https://answers.launchpad.net/hplip/+question/248426
>
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Rrao (rrao-t) said :
#9

Please re-open. I have the same problem also and need an answer to the same question. This is related to another question posted via Question#249168: https://answers.launchpad.net/hplip/+question/249168.

Revision history for this message
goutam kodu (goutam-hplip) said :
#10

Please provide me the output of the following command:

1. pkg-config --variable pc_path pkg-config
2. locate dbus-1.pc

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#11

$ pkg-config --variable pc_path pkg-config
/home/mancilla/current/soft/install/lib/pkgconfig:/home/mancilla/current/soft/install/share/pkgconfig

$ locate dbus-1.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/dbus-1.pc

On Wed, Jul 16, 2014 at 8:11 AM, goutam kodu <
<email address hidden>> wrote:

> Your question #248426 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/248426
>
> goutam kodu posted a new comment:
> Please provide me the output of the following command:
>
> 1. pkg-config --variable pc_path pkg-config
> 2. locate dbus-1.pc
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Best goutam kodu (goutam-hplip) said :
#12

Run command:
export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig/"

and run command 'cd hplip-3.14.4; ./configure --prefix=/usr'.

Please tell us if you are seeing the same issue.

If issue is still reproducible then run command:

'sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/dbus-1.pc /home/mancilla/current/soft/install/lib/pkgconfig'

(This will copy file dbus-1.pc to path /home/mancilla/current/soft/install/lib/pkgconfig so that pkg-config will recognize the dbus-1 include headers)

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#13

Running the first command:
  export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig/"
worked!

I then ran the command for the complete installation:
  sh hplip-3.14.6.run
and the installation completed successfully.

Will this be incorporated in the script in the future? I am afraid that the next update will not work and I will have to manually set the PKG_CONFIG_PATH variable. In the HP Device Manager the printer still appears as "busy, powered down or unplugged". And the scanning software takes a long time to find the scanner or sometimes it gives up. Otherwise the printer is working fine.

Thanks.

Revision history for this message
Blanca Mancilla (blancalmancilla) said :
#14

Thanks goutam kodu, that solved my question.