HPLIP installation error with libusb

Asked by Cody Padolina

Although libusb and libusb-devel is already installed in the RHEL 5.8 server, the run install still gives an error. I tried to install libusb-devel but it is already installed.
Here's the installation run:
./hplip-3.12.6.run
Creating directory hplip-3.12.6
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.6 Self Extracting Archive...
warning: hplip-install should not be run as root.

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

Copyright (c) 2001-14 Hewlett-Packard 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_Fri-27-Jul-2012_23:41:53.log

\error: You are running the installer as root. It is highly recommended that you run the installer as
error: a regular (non-root) user. Do you still wish to continue?
Continue with installation (y=yes, n=no*, q=quit) ? y

note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: Auto installation is not supported for 'rhel' distro so all dependencies may not be installed.
Please install manually as mentioned in 'http://hplipopensource.com/hplip-web/install/manual/index.html' web-site

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) : a

Initializing. Please wait...

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

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Red Hat Enterprise Linux 5.8.

Is "Red Hat Enterprise Linux 5.8" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

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

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 1 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: libusb (libusb - USB library)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 3 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'fax': python-dbus (Python DBus - Python bindings for DBus)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'base': cups-ddk (CUPS DDK - CUPS driver development kit)
warning: This installer cannot install 'cups-ddk' for your distro/OS and/or version.

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

RUNNING PRE-PACKAGE COMMANDS
----------------------------
warning: An error occurred running 'su -c 'yum list update''
su -c 'yum list update' (Pre-depend step 1)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c 'yum -y -d 10 -e 1 install libusb1''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install dbus-python''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install pygobject2''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install python-reportlab''
Please wait, this may take several minutes...

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

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'libusb (libusb - USB library)' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

# rpm -qa hplip
hplip-1.6.7-6.el5_6.1

# rpm -qa libusb
libusb-0.1.12-6.el5
libusb-0.1.12-6.el5

# yum install libusb-devel
Loaded plugins: rhnplugin, security
Setting up Install Process
Package libusb-devel-0.1.12-6.el5.x86_64 already installed and latest version
Package libusb-devel-0.1.12-6.el5.i386 already installed and latest version
Nothing to do

Here's the hp-check run:
#hp-check

HP Linux Imaging and Printing System (ver. 1.6.7)
Dependency/Version Check Utility ver. 2.1

Copyright (c) 2003-6 Hewlett-Packard 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.

Basic system info...
--> Linux servera 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

Currently installed version...
--> 1.6.7

Checking Python version...
--> Version 2.4.3 installed.
--> OK

Checking for user interface dependencies...
Checking for SIP...
--> OK
Checking for PyQt...
--> OK
Checking Qt version...
--> Version 3.3.6 installed.
--> OK
Checking SIP version...
--> Version 4.4.5 installed
--> OK
Checking PyQt version...
--> Version 3.16.0 installed.
--> OK

Checking for library dependencies...
Checking for libnetsnmp...
--> OK
Checking for libjpeg...
--> OK
Checking for libusb...
--> OK
Checking for libcrypto...
--> OK
Checking for libpthread...
--> OK

Checking for application dependencies...
Checking ghostscript...
--> Version 8.70
Checking gcc...
--> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
--> OK
Checking make...
--> GNU Make 3.81
--> OK
Checking ReportLab (optional)...
warning: Not installed. Fax coverpage support will be disabled.

Checking kernel module...
Checking for ppdev (optional)...
--> OK

Checking for CUPS...
--> scheduler is running
--> OK

Checking existing CUPS queues...
  Printer Device URI HPLIP Installed?
  ---------- ------------------ --------------------
  hpp4015 http://servera:631 No

Note: Any CUPS queues that are not 'HPLIP Installed', must be installed
with the 'hp:' or 'hpfax:' backends to have them work in HPLIP. Refer
to the install instructions on http://hplip.sourceforge.net for more help.

If any errors or warnings were reported, please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Please tell me what steps I should take for the HPLIP installation and in completing a setup of a HP P4015 printer?
I used the GUI to setup the printer and tried to print.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Amarnath Chitumalla
Solved:
Last query:
Last reply:
Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#1

Hi Cody Padolina,

HPLIP installation is searching for libusb-1.0 instead of libusb package. Seems this is not installed in the system.

To use libusb package instead of libusb-1.0 in installation, please follow below instructions to install HPLIP.

1) Go to hplip source directory
    $ cd hplip-3.12.6

2) Open installer/distros.dat file
     $ gedit installer/distros.dat
      --> search for "[rhel:5.0]" string.
      --> add "libusb01=1" just below "supported=0" line (around line no. 847)

3) Run install.py command
     $ ./install.py

This will start auto installation process.
Please let us know if you find any issues.

Thanks & Regards,
Amarnath

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#2

Providing more information in above step 2)

2)
 $ gedit installer/distros.dat
      --> search for "[rhel:5.0]" string.
      --> add "libusb01=1" just below "supported=0" line (around line no. 847)

         Change From :-
              [rhel:5.0]
              code_name=
              supported=0
              scan_supported=1
        To:-
             [rhel:5.0]
              code_name=
              supported=0
              libusb01=1
              scan_supported=1

Revision history for this message
Cody Padolina (codypadolina) said :
#3

Hello Amarnath Chitumalla,

Your solution made the auto-installer work. Although with this version 3.12.6, it does not discover the PPD file for HP p4015x. With the version 1.6.7, it can discover the PPD file for HP 4350. I need both HP p4015x and HP 4350 setup.

Here's what I did from the RH site:
# rpm -qa hplip
hplip-1.6.7-6.el5_6.1
# rpm -e --nodeps hplip
# rpm -e --nodeps hpijs
# rpm -e --nodeps libsane-hpaio
# yum install net-snmp-libs
Loaded plugins: security
Setting up Install Process
Nothing to do
# yum install sane-backends-libs
Loaded plugins: security
Setting up Install Process
Nothing to do
# rpm -ivh --replacefiles hplip-3.12.6_rhel-5.0.x86_64.rpm
Preparing... ########################################### [100%]
   1:hplipfull ########################################### [100%]

This above made HPLIP an unrecognized service.
# service hplip stop
hplip: unrecognized service

# hp-check
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 Hewlett-Packard 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built
HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and
run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /usr/share/cups/drivers/hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

 Kernel: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Host: servera
 Proc: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Distribution: rhel 5.8

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for rhel distro 5.8 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=qt3
qt3=yes
qt4=no
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 8.70 OK -
 network Network-wget OPTIONAL - 1.11.4 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.18 OK -

(xsane:3525): Gtk-WARNING **: cannot open display:
 error: xsane SANE-GUI OPTIONAL 0.9 - INCOMPAT 'xsane needs to be instal
led'
 cups CUPS REQUIRED 1.1 1.3.7 OK 'CUPS Scheduler is runnin
g'

-------------------------
| General Dependencies |
-------------------------

 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.5 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - - OK -
 pyqt Python-Qt REQUIRED 2.3 3.16.0 OK -
 cups-devel CUPS-SDK REQUIRED - 1.3.7 OK -
 error: libusb USB-Lib REQUIRED - 0.1.12 MISSING 'libusb-1.0 needs to be i
nstalled'
 sane Scan-Lib REQUIRED - 1.0.18 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.3.7 OK -
 python-xml Python-XML-Lib REQUIRED - 1.95.8 OK -
 error: python-notify Desktop-notifications OPTIONAL - - MISSING 'python-notify needs to b
e installed'

------------------------------
| Compile Time Dependencies |
------------------------------

 libtool Build-tools REQUIRED - 1.5.22 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane
.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

printer1
-----------
Type: Printer
Device URI: hp:/net/hp_LaserJet_4350?ip=xx.xx.xx.xxx
PPD: /usr/share/foomatic/db/source/PPD/HP/mono_laser/HP_LaserJet_4350.ppd.gz
PPD Description: HP LaserJet 4350 Postscript (recommended)
Printer status: printer printer1 is idle. enabled since Sun Jul 29 01:29:05 2012
Communication status: Good

printer2
----------
Type: Printer
Device URI: hp:/net/hp-laserjet_p4015?ip=xx.xx.xx.xxx
PPD: /etc/cups/ppd/printer2.ppd
PPD Description: HP LaserJet 4000 Series Postscript (recommended)
Pri/usr/lib/cups/backend/hp failed disabled since Mon Jul 30 16:56:16 2012 -
error: Unsupported model: hp-laserjet_p4015
error: Communication status: Failed

--------------
| PERMISSION |
--------------

error: groups user-groups Required - - MISSING ['lp']

-----------
| SELINUX |
-----------

SELinux disabled Optional - - OK -

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libusb1' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'notify-python' package is missing/incompatible

Total Errors: 5
Total Warnings: 1

Re-run 'hp-check --fix' command to prompt and fix the issues.

Done.

I ran a printer2 setup and was able to set the PPD file to:
PPD file: lsb/usr/HP/hp-laserjet_p4015-hpijs.ppd.gz
but this version 3.12.6 made the HP 4350 not work.

Here's the auto-installer:
./install.py
warning: hplip-install should not be run as root.

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

Copyright (c) 2001-14 Hewlett-Packard 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_Mon-30-Jul-2012_21:11:10.log

\error: You are running the installer as root. It is highly recommended that you run the installer as
error: a regular (non-root) user. Do you still wish to continue?
Continue with installation (y=yes, n=no*, q=quit) ? y

note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: Auto installation is not supported for 'rhel' distro so all dependencies may not be installed.
Please install manually as mentioned in 'http://hplipopensource.com/hplip-web/install/manual/index.html' web-site

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) : a

Initializing. Please wait...

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

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Red Hat Enterprise Linux 5.8.

Is "Red Hat Enterprise Linux 5.8" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

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

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 1 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 6 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development
files)
warning: Missing REQUIRED dependency for option 'fax': python-dbus (Python DBus - Python bindings for DBus)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'fax': dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)
warning: Missing OPTIONAL dependency for option 'base': cups-ddk (CUPS DDK - CUPS driver development kit)
warning: This installer cannot install 'cups-ddk' for your distro/OS and/or version.

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

RUNNING PRE-PACKAGE COMMANDS
----------------------------
warning: An error occurred running 'su -c 'yum list update''
su -c 'yum list update' (Pre-depend step 1)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c 'yum -y -d 10 -e 1 install python-devel''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install net-snmp-devel''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install dbus-python''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install pygobject2''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install python-reportlab''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install dbus-devel''
Please wait, this may take several minutes...
Running 'su -c 'yum -y -d 10 -e 1 install sane-backends-devel''
Please wait, this may take several minutes...

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

RE-CHECKING DEPENDENCIES
------------------------
warning: An optional dependency 'python-dbus (Python DBus - Python bindings for DBus)' is still missing.
warning: Option 'fax' has been turned off.
warning: An optional dependency 'reportlab (Reportlab - PDF library for Python)' is still missing.
warning: Some features may not function as expected.
warning: An optional dependency 'cups-ddk (CUPS DDK - CUPS driver development kit)' is still missing.
warning: Some features may not function as expected.

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

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/cups/model/HP --libdir=/usr/lib64 --prefix=/usr --disable-qt4 --enable-libusb01_buil
d --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --enable-foomatic-ppd-install --enable-hpijs-install
--disable-udev_sysfs_rules --disable-policykit --disable-cups-drv-install --disable-hpcups-install --enable-network-build --disable-
dbus-build --enable-scan-build --disable-fax-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...
Command completed successfully.

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

Build complete.

POST-BUILD COMMANDS
-------------------
/usr/sbin/usermod -a -Glp,sys root (Post-build step 1)

HPLIP UPDATE NOTIFICATION
-------------------------
Do you want to check for HPLIP updates?. (y=yes*, n=no) : y

RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in when you started this installer, you will need to
either restart your PC or unplug and re-plug in your printer (USB cable only). If you choose to restart, run this command after
restarting: hp-setup (Note: If you are using a parallel connection, you will have to restart your PC. If you are using
network/wireless, you can ignore and continue).

Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : i

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
-error: No output seen in over 300 sec... (Is the CD-ROM/DVD source repository enabled? It shouldn't be!)
error: hp-setup failed. Please run hp-setup manually.

RE-STARTING HP_SYSTRAY
----------------------
warning: python-dbus not installed.
warning: hp-systray should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-14 Hewlett-Packard 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.

error: hp-systray cannot be run as root. Exiting.

# service hplip status
hpiod (pid 27121) is running...
hpssd is stopped
# service hplip stop
Stopping hpiod: [ OK ]
Stopping hpssd: [FAILED]
# service hplip start
Starting hpiod: [ OK ]
Starting hpssd: warning: python-dbus not installed.
error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...
                                                           [FAILED]

What steps are needed to cleanup and have both p4015x and 4350 setup?

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#4

Hi Cody Padolina,

Some times 1st time printer setup picks incorrect PPD on fresh installation. Please remove and add the print queue as follows.

1) run "hp-toolbox" command in terminal
--> remove the all queues using "-" icon.
2) add printers by running "hp-setup" command

Note:- for Laserjet p4015x, correct PPD is hp-laserjet_p4010_series-ps.ppd

Thanks & Regards,
Amarnath

Revision history for this message
Cody Padolina (codypadolina) said :
#5

Hello Amarnath,

I have this when I run hp-toolbox -

hp-toolbox -
warning: python-dbus not installed.
warning: hp-toolbox should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.12.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-14 Hewlett-Packard 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.

error: Unable to load Qt4 support. Is it installed?

I installed Qt4 and then qt4

yum install Qt4
Loaded plugins: rhnplugin, security
Setting up Install Process
No package Qt4 available.
  * Maybe you meant: qt4
Nothing to do

What are needed ?

I remember hp-setup picks up what PPD he discovers, can I point to the p4010 PPD ?

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#6

Hi Cody Padolina,

If you are running as root user, please run the following commands as not-root user.

1) Run hp-toolbox
$ hp-toolbox
--> click on "-" icon.
--> Select All print queues and Remove.

2) run hp-setup to add printer
$ hp-setup

If you face any problems, please run following command. (post the output here, if problem is not solved)
$ hp-check --fix

Thanks & Regards,
Amarnath

Revision history for this message
Cody Padolina (codypadolina) said :
#7

Hello Amarnath,

1) I run the hp-toolbox as non-root and it have errors. I tried to yum install Qt4 and qt4 with no success.
#hp-toolbox
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-14 Hewlett-Packard 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.

error: Unable to load Qt4 support. Is it installed?

#yum install Qt4
Loaded plugins: security
Setting up Install Process
No package Qt4 available.
Nothing to do
#yum install qt4
Loaded plugins: security
Setting up Install Process
No package qt4 available.
Nothing to do

2) I was able to add printers with the hp-setup with discovered PPD files.
Would there be a way to manually change a PPD file on the printer setup or point to the PPD file?

3) This is the hp-check:
#hp-check
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 Hewlett-Packard 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built
HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and
run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /usr/share/cups/drivers/hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

 Kernel: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Host: servera
 Proc: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Distribution: rhel 5.8

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for rhel distro 5.8 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=no
cups-drv-install=no
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 8.70 OK -
 network Network-wget OPTIONAL - 1.11.4 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.18 OK -

(xsane:18045): Gtk-WARNING **: cannot open display:
 error: xsane SANE-GUI OPTIONAL 0.9 - INCOMPAT 'xsane needs to be instal
led'
 cups CUPS REQUIRED 1.1 1.3.7 OK 'CUPS Scheduler is runnin
g'

-------------------------
| General Dependencies |
-------------------------

 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.5 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - - OK -
 error: pyqt4 Python-Qt4 REQUIRED 4.0 - MISSING -
 cups-devel CUPS-SDK REQUIRED - 1.3.7 OK -
 libusb USB-Lib REQUIRED - 0.1.12 OK -
 sane Scan-Lib REQUIRED - 1.0.18 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.3.7 OK -
 python-xml Python-XML-Lib REQUIRED - 1.95.8 OK -
 error: python-notify Desktop-notifications OPTIONAL - - MISSING 'python-notify needs to b
e installed'

------------------------------
| Compile Time Dependencies |
------------------------------

 libtool Build-tools REQUIRED - 1.5.22 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane
.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

printer1
-----------
Type: Printer
Device URI: hp:/net/hp_LaserJet_4350?ip=xx.xx.xx.xxx
PPD: /etc/cups/ppd/printer1.ppd
PPD Description: HP LaserJet 4350 Postscript (recommended)
Printer status: printer printer1 is idle. enabled since Tue 31 Jul 2012 03:38:26 PM CDT
Communication status: Good

printer2
----------
Type: Printer
Device URI: hp:/net/HP_LaserJet_P4015?ip=xx.xx.xx.xxx
PPD: /etc/cups/ppd/printer2.ppd
PPD Description: HP LaserJet p4015 hpijs, 3.12.6
Printer status: printer printer2 is idle. enabled since Tue 31 Jul 2012 03:38:28 PM CDT
Communication status: Good

--------------
| PERMISSION |
--------------

error: groups user-groups Required - - MISSING ['lp']

-----------
| SELINUX |
-----------

SELinux disabled Optional - - OK -

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'PyQt4' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'notify-python' package is missing/incompatible

Total Errors: 4
Total Warnings: 1

Re-run 'hp-check --fix' command to prompt and fix the issues.

Done.
# hp-check --fix
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 Hewlett-Packard 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built
HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and
run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /usr/share/cups/drivers/hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

 Kernel: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Host: servera
 Proc: 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 GNU/Linux
 Distribution: rhel 5.8

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for rhel distro 5.8 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=no
cups-drv-install=no
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 8.70 OK -
 network Network-wget OPTIONAL - 1.11.4 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.18 OK -

(xsane:18452): Gtk-WARNING **: cannot open display:
 error: xsane SANE-GUI OPTIONAL 0.9 - INCOMPAT 'xsane needs to be instal
led'
 cups CUPS REQUIRED 1.1 1.3.7 OK 'CUPS Scheduler is runnin
g'

-------------------------
| General Dependencies |
-------------------------

 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.5 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - - OK -
 error: pyqt4 Python-Qt4 REQUIRED 4.0 - MISSING -
 cups-devel CUPS-SDK REQUIRED - 1.3.7 OK -
 libusb USB-Lib REQUIRED - 0.1.12 OK -
 sane Scan-Lib REQUIRED - 1.0.18 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.3.7 OK -
 python-xml Python-XML-Lib REQUIRED - 1.95.8 OK -
 error: python-notify Desktop-notifications OPTIONAL - - MISSING 'python-notify needs to b
e installed'

------------------------------
| Compile Time Dependencies |
------------------------------

 libtool Build-tools REQUIRED - 1.5.22 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane
.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

printer1
-----------
Type: Printer
Device URI: hp:/net/hp_LaserJet_4350?ip=xx.xx.xx.xxx
PPD: /etc/cups/ppd/printer1.ppd
PPD Description: HP LaserJet 4350 Postscript (recommended)
Printer status: printer printer1 is idle. enabled since Tue 31 Jul 2012 03:38:26 PM CDT
Communication status: Good

printer2
----------
Type: Printer
Device URI: hp:/net/HP_LaserJet_P4015?ip=xx.xx.xx.xxx
PPD: /etc/cups/ppd/printer2.ppd
PPD Description: HP LaserJet p4015 hpijs, 3.12.6
Printer status: printer printer2 is idle. enabled since Tue 31 Jul 2012 03:38:28 PM CDT
Communication status: Good

--------------
| PERMISSION |
--------------

error: groups user-groups Required - - MISSING ['lp']

-----------
| SELINUX |
-----------

SELinux disabled Optional - - OK -

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'PyQt4' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
error: 'notify-python' package is missing/incompatible

Total Errors: 4
Total Warnings: 1

------------------------------------
| Installation of Missing Packages |
------------------------------------

Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip, q=quit):a
Updating repository
-------------------
cmd =su -c 'yum list update'
warning: Failed to update Repository, check if any update/installation is running.
Installing Missing/Incompatible packages
----------------------------------------
cmd =su -c 'yum -y -d 10 -e 1 install xsane'
cmd =su -c 'yum -y -d 10 -e 1 install notify-python'
cmd =su -c 'yum -y -d 10 -e 1 install PyQt4'
Do you want to add missing groups to user?(y=yes*, n=no)y
cmd = /usr/sbin/usermod -a -Glp,sys root

Need to reboot system to take effect of user group.

Done.

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#8

Hi Cody Padolina,

Please try following command.
$ hp-toolbox --qt3

2) Is hp-setup picking incorrect PPD every time?.

 Yes, you can manually copy ppd as follows. (following commands needs root permissions)
   $ cd /usr/share/ppd/HP/
   $ gzip -d hp-laserjet_p4010_series-ps.ppd.gz

   $ cp hp-laserjet_p4010_series-ps.ppd /etc/cups/ppd/<PRINT Queue Name>.ppd
    e.g. If Print queue name is HP_LASERJET_P4015, then already HP_LASERJET_P4015.ppd file present in /etc/cups/ppd

    e.g use like cp hp-laserjet_p4010_series-ps.ppd /etc/cups/ppd/HP_LASERJET_P4015.ppd

Thanks & Regards,
Amarnath

Revision history for this message
Cody Padolina (codypadolina) said :
#9

Hello Amaranath,

I tried the hp-toolbox --qt3 and have this:
# hp-toolbox --qt3
warning: python-dbus not installed.
warning: hp-toolbox should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.12.6)
HP Device Manager ver. 15.0

Copyright (c) 2001-14 Hewlett-Packard 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.

The HP Device Manager (aka "Toolbox") for HPLIP supported devices. Provides access to status, tools, and supplies levels.

Usage: hp-toolbox [OPTIONS]

[OPTIONS]
  Set the logging level: -l<level> or --logging=<level>
                                        <level>: none, info*, error, warn, debug (*default)
  Run in debug mode: -g (same as option: -ldebug)
  This help information: -h or --help

  Disable dbus (Qt3 only): -x or --disable-dbus

See Also:
hp-align
hp-clean
hp-colorcal
hp-devicesettings
hp-faxsetup
hp-firmware
hp-info
hp-levels
hp-linefeedcal
hp-makecopies
hp-plugin
hp-pqdiag
hp-print
hp-printsettings
hp-scan
hp-sendfax
hp-testpage
hp-timedate
hp-unload

error: option --qt3 not recognized

Revision history for this message
Best Amarnath Chitumalla (amarnath-chitumalla) said :
#10

Hi

Please try to install using RPMs.

1) RHEL RPM can be downloaded using following site.
http://hplipopensource.com/hplip-web/install_wizard/index.html (Note:- Please select version as 5.0 instead of 5.8).

2) Uninstall existing hplip using following command.
$ su -c 'hp-uninstall'

3) Following the http://hplipopensource.com/hplip-web/install/manual/distros/redhatenterprise.html to Install rpm.
$ su -c "rpm -Uvh hplip-3.12.6_rhel-5.0.i386.rpm"

Thanks & Regards,
Amarnath

Revision history for this message
Cody Padolina (codypadolina) said :
#11

Thanks Amarnath Chitumalla, that solved my question.