Installation error (HPLIP 3.19.11) in Raspbian Buster 10.1

Asked by Sergio Ciordia on 2019-11-13

Hi everybody,

I'm trying to install HPLIP v3.19.11 in a Raspberry Pi 3 with Raspbian Buster 10.1. When I run the installation I have problems to install pyqt4-dbus and pyqt4 and I don't enable GUI Qt4 to avoid the errors but I finish with the same problem: "error: 'make' command failed with status code 2".

I need to install HPLIP to setup a HP M607 Printer. Would it be possible to get only the PPD file to install this printer?

Could anybody help me, please?. I have included below the command line output.

Thank you very much.

Sergio

----------------------------------------------------------------------------
This is the command-line output:

Creating directory hplip-3.19.11
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.11 Self Extracting Archive....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.19.11)
HPLIP Installer ver. 5.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Wed-13-Nov-2019_13:21:34.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
//usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
error: debian-10.1 version is not supported, so all dependencies may not be installed. However trying to install using debian-10.0 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : c

INTRODUCTION
------------
This installer will install HPLIP version 3.19.11 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian 10.1.

Is "Debian 10.1" your correct distro/OS and version (y=yes*, n=no, q=quit) ? n

DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num. Distro/OS Name
---- ------------------------
0 Mepis
1 Debian
2 SUSE Linux
3 Mandriva Linux
4 Fedora
5 Red Hat
6 Red Hat Enterprise Linux
7 Ubuntu
8 PCLinuxOS
9 Linux Mint
10 gOS
11 Linpus Linux
12 Manjaro Linux
13 IGOS
14 Boss
15 Linux From Scratch

Enter number 0...15 (q=quit) ?1

Choose the version of "Debian" that most closely matches your system:

Num. Distro/OS Version
---- ----------------------------------------
0 Unknown or not listed
1 10.0 ("Buster", Released 22/07/2017)
2 6.0 ("Squeeze")
3 6.0.1 ("Squeeze")
4 6.0.10 ("Squeeze")
5 6.0.2 ("Squeeze")
6 6.0.3 ("Squeeze")
7 6.0.4 ("Squeeze")
8 6.0.5 ("Squeeze")
9 6.0.6 ("Squeeze")
10 6.0.7 ("Squeeze")
11 6.0.8 ("Squeeze")
12 6.0.9 ("Squeeze")
13 7.0 ("Wheezy", Released 04/05/2013)
14 7.1 ("Wheezy", Released 04/05/2013)
15 7.2 ("Wheezy", Released 04/05/2013)
16 7.3 ("Wheezy", Released 04/05/2013)
17 7.4 ("Wheezy", Released 04/05/2013)
18 7.5 ("Wheezy", Released 04/05/2013)
19 7.6 ("Wheezy", Released 04/05/2013)
20 7.7 ("Wheezy", Released 04/05/2013)
21 7.8 ("Wheezy", Released 04/05/2013)
22 7.9 ("Wheezy", Released 04/05/2013)
23 8.0 ("Jessie", Released 04/05/2015)
24 8.1 ("Jessie", Released 04/05/2015)
25 8.2 ("Jessie", Released 04/05/2015)
26 8.3 ("Jessie", Released 04/05/2015)
27 8.4 ("Jessie", Released 04/05/2016)
28 8.5 ("Jessie", Released 27/08/2016)
29 8.6 ("Jessie", Released 22/10/2016)
30 8.7 ("Jessie", Released 22/10/2016)
31 8.8 ("Jessie", Released 31/05/2017)
32 9.1 ("Stretch", Released 22/07/2017)
33 9.2 ("Stretch", Released 7/10/2017)
34 9.3 ("Stretch", Released 9/12/2017)
35 9.4 ("Stretch", Released 10/3/2018)
36 9.5 ("Stretch", Released 10/3/2018)
37 9.6 ("Stretch", Released 10/11/2018)
38 9.7 ("Stretch", Released 23/1/2019)
39 9.8 ("Stretch", Released 16/2/2019)
40 9.9 ("Stretch", Released 22/07/2017)

Enter number 0...40 (q=quit) ?1

Distro set to: Debian 10.0

DRIVER OPTIONS
--------------
Would you like to install Custom Discrete Drivers or Class Drivers ( 'd'= Discrete Drivers*,'c'= Class Drivers,'q'= Quit)? : d

Initializing. Please wait...

SELECT HPLIP OPTIONS
--------------------
You can select which HPLIP options to enable. Some options require extra dependencies.

Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Graphical User Interfaces (Qt4)' (y=yes*, n=no, q=quit) ? n
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'PC Send Fax support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Scanning support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'HPLIP documentation (HTML)' (y=yes*, n=no, q=quit) ? y

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

INSTALLATION NOTES
------------------
NOTE: Disable the CD Sources in your apt sources.list or the install will fail and hang.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 OPTIONAL
pyqt5 gui_qt5 REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))

Would you like to have this installer install the missing dependency (y=yes*, n=no, q=quit) ? y

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt5': pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)

Would you like to have this installer install the missing dependency (y=yes*, n=no, q=quit) ? y

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "dpkg --configure -a" (Pre-depend step 1)
su -c "apt-get install -f" (Pre-depend step 2)
su -c "apt-get update" (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y gtk2-engines-pixbuf"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-pyqt5"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus.mainloop.pyqt5"'
Please wait, this may take several minutes...

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------

RUNNING SCANJET DEPENDENCY COMMANDS
-----------------------------------
su -c "apt-get install --force-yes -y python-pip" (Scanjet-depend step 1)
su -c "pip install --upgrade pip" (Scanjet-depend step 2)
su -c "apt-get install --force-yes -y libleptonica-dev" (Scanjet-depend step 3)
su -c "apt-get install --force-yes -y tesseract-ocr" (Scanjet-depend step 4)
su -c "apt-get install --force-yes -y libtesseract-dev" (Scanjet-depend step 5)
su -c "pip install tesserocr" (Scanjet-depend step 6)
su -c "apt-get install --force-yes -y libzbar-dev" (Scanjet-depend step 7)
su -c "apt-get install --force-yes -y python-zbar" (Scanjet-depend step 8)
su -c "apt-get install --force-yes -y python-opencv" (Scanjet-depend step 9)
su -c "apt-get install --force-yes -y python-pypdf2" (Scanjet-depend step 10)
su -c "pip install imutils" (Scanjet-depend step 11)
su -c "pip install pypdfocr" (Scanjet-depend step 12)
su -c "pip install scikit-image" (Scanjet-depend step 13)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
su -c "pip install scipy" (Scanjet-depend step 14)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
OK

READY TO BUILD AND INSTALL
--------------------------
Ready to perform build and install. Press <enter> to continue or 'q' to quit:

PRE-BUILD COMMANDS
------------------
OK

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --disable-qt4 --enable-qt5 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-apparmor_build'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make'
Please wait, this may take several minutes...
error: 'make' command failed with status code 2

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sergio Ciordia
Solved:
2019-11-14
Last query:
2019-11-14
Last reply:
2019-11-14
brian_p (claremont102) said : #1

> I'm trying to install HPLIP v3.19.11 in a Raspberry Pi 3
> with Raspbian Buster 10.1.

Why? What does your OS lack?

--
Brian.

Sergio Ciordia (sciordia) said : #2

Hi Brian,

I don't understand your questions. I'm using Raspberry Pi with Raspbian Buster and I want to install my HP Laserjet M607 Printer but the only way is installing HPLIP. When I run HPLIP installation the only dependencies that I need are:

- pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
- pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)

In principle these dependencies are installed with HPLIP but every time I run the installation it tells me that you have to install them so I'm afraid they are not installed correctly. I don't know how to install them manually.

Anyway the installation error really occurs when I get to the step of "Running 'make'" as you can see in my previous email. I get this error: "error: 'make' command failed with status code 2" and the installation stops. I don't know where the problem is but I can't get through that step. Could you help me, please?.

Thank you very much.

Sergio

brian_p (claremont102) said : #3

Hello Sergio,

> I need to install HPLIP to setup a HP M607 Printer.

Is this the HP LaserJet Enterprise m607n (or m607dn)? If so, I wondered
why you needed HPLIP v3.19.11 when buster provides all that you require.
One technique is at

  https://wiki.debian.org/CUPSQuickPrintQueues

I would recommend you go for this for printing as it avoids HPLIP bugs and
is future-proof.

> Would it be possible to get only the PPD file to install this printer?

Definitely. All you have to have is printer-driver-postscript-hp. I would use
lpadmin to set up a queue:

  https://wiki.debian.org/CUPSPrintQueues

--
Brian.

Sergio Ciordia (sciordia) said : #4

Hi brian,

thanks for your help. Finally I have installed cups and I get the PPD file to my printer from archlinux website: https://www.archlinux.org/packages/extra/x86_64/hplip/

Then I added a new printer in cups and it is working perfectly since this afternoon.

Thank you very much.

Best regards,
Sergio