HPLIP installation procedure for the Suse Linux Enterpirse 11 Sp1

Asked by Louis

Dear Support

I have the questions for the HPLIP 3.15.4 installation procedure for the SuSE Linux
the Linux version as the following

I tried to follow the manual installation instructions but fail (http://hplipopensource.com/hplip-web/install/manual/distros/suse_linux.html) , and my desktop cannot access the internet, would you mind to let me know how to install the HPLIP 3.15.4 and the driver-plug in for the SuSE Linux Enterprise Desktop 11 SP1?

Printer Model : HP LaserJet Pro M225dn
HP LaserJet Pro M425dn

HP LaserJet Pro MFP M225dn
HP LaserJet Pro MFP M425dn

--------------------------------------------------------------------------------------------

HP Linux Imaging and Printing System (ver. 3.9.8)

Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------

| SYSTEM INFO |

---------------

Basic system information:

Linux scan 2.6.32.12-0.7-pae #1 SMP 2010-05-20 11:14:20 +0200 i686 i686 i386 GNU/Linux

Distribution:

suse 11

Checking Python version...

OK, version 2.6.0 installed

Checking PyQt 4.x version...

OK, version 4.6.2 installed.

Checking for CUPS...

Status: scheduler is running

Version: 1.3.9

warning: /etc/cups/cupsd.conf file not found or not accessible.

Checking for dbus/python-dbus...

dbus daemon is running.

python-dbus version: 0.83.0

------------------------------------

| COMPILE AND RUNTIME DEPENDENCIES |

------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).

note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...

OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cupsddk"

Checking for dependency: CUPS devel- Common Unix Printing System development files...

error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel"

Checking for dependency: CUPS image - CUPS image development files...

error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel"

Checking for dependency: DBus - Message bus system...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2"

Checking for dependency: gcc - GNU Project C and C++ Compiler...

error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses gcc-c++"

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...

OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl"

Checking for dependency: libjpeg - JPEG library...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel"

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel"

Checking for dependency: libpthread - POSIX threads library...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses glibc"

Checking for dependency: libtool - Library building support services...

error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel"

Checking for dependency: libusb - USB library...

error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb libusb-devel"

Checking for dependency: make - GNU make utility to maintain groups of programs...

OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

To install this dependency, execute this command:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging"

Checking for dependency: PolicyKit - Administrative policy framework...

OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...

OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...

OK, found.

Checking for dependency: Python devel - Python development files...

OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...

OK, found.

Checking for dependency: Python XML libraries...

OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...

OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...

OK, found.

Checking for dependency: Reportlab - PDF library for Python...

OK, found.

Checking for dependency: SANE - Scanning library...

OK, found.

Checking for dependency: SANE - Scanning library development files...

OK, found.

Checking for dependency: scanimage - Shell scanning program...

OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...

OK, found.

----------------------

| HPLIP INSTALLATION |

----------------------

Currently installed HPLIP version...

HPLIP 3.9.8 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:

# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]

version=3.9.8

[dirs]

home=/usr/share/hplip

run=/var/run

ppd=/usr/share/cups/model/manufacturer-PPDs/hplip

ppdbase=/usr/share/cups/model/manufacturer-PPDs

doc=/usr/share/doc/packages/hplip

icon=/usr/share/applications

cupsbackend=/usr/lib/cups/backend

cupsfilter=/usr/lib/cups/filter

drv=/usr/lib/cups/driver

# Following values are determined at configure time and cannot be changed.

[configure]

network-build=yes

pp-build=yes

gui-build=yes

scanner-build=yes

fax-build=yes

dbus-build=yes

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=no

cups-ppd-install=yes

internal-tag=3.9.8.36

restricted-build=no

ui-toolkit=qt4

qt3=no

qt4=yes

policy-kit=no

hpijs-only-build=no

lite-build=no

udev-acl-rules=no

Current contents of '/var/lib/hp/hplip.state' file:

# hplip.state - HPLIP runtime persistent variables.

[plugin]

installed=0

eula=0

Current contents of '~/.hplip/hplip.conf' file:

[installation]

version = 3.9.8.36

date_time = 04/23/2015 16:09:34

--------------------------

| DISCOVERED USB DEVICES |

--------------------------

No devices found.

---------------------------------

| INSTALLED CUPS PRINTER QUEUES |

---------------------------------

lpstat

------

Type: Unknown

Device URI: No destinations added.

----------------------

| SANE CONFIGURATION |

----------------------

'hpaio' in '/etc/sane.d/dll.conf'...

OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,

check that the scanner is plugged in, turned on and detected by the

sane-find-scanner tool (if appropriate). Please read the documentation

which came with this software (README, FAQ, manpages).

---------------------

| PYTHON EXTENSIONS |

---------------------

Checking 'cupsext' CUPS extension...

OK, found.

Checking 'pcardext' Photocard extension...

OK, found.

Checking 'hpmudext' I/O extension...

OK, found.

Checking 'scanext' SANE scanning extension...

OK, found.

-----------------

| USB I/O SETUP |

-----------------

Checking for permissions of USB attached printers...

HP Device 0x2d2a at 001:003:

warning: Device URI: (Makeuri FAILED)

---------------

| USER GROUPS |

---------------

users dialout video

-----------

| SUMMARY |

-----------

error: 12 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cupsddk"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses gcc-c++"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses glibc"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb libusb-devel"

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging"

Please refer to the installation instructions at:

http://hplip.sourceforge.net/install/index.html

Done.

-------------------------------------------------------------------------------------

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Louis
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Meixner (jsmeix) said :
#1

Only FYI:

You may have a look at
https://bugs.launchpad.net/hplip/+bug/1424539
which seems to be a similar issue.

Regarding SUSE Linux Enterprise 11 SP1:
As far as I know SP1 is outdated and
no longer supported by SUSE.
Nowadays SP3 is supported.
Accordingly I provide HPLIP version 3.15.2 also for
SUSE Linux Enterprise 11 SP3
in the openSUSE build service development project
"Printing" but before using packages from there read
https://build.opensuse.org/project/show/Printing

For HPLIP 3.14.10 for
SUSE Linux Enterprise 11 SP1
see
https://bugs.launchpad.net/hplip/+bug/1424539

Revision history for this message
Louis (louis-0) said :
#2

Dear Johannes

I tried to install the following RPMs but fail
hplip-3.14.10-4.2.i586.rpm sane-frontends-1.0.14-57.3.i586.rpm
hplip-devel-3.14.10-4.2.i586.rpm yast2-printer-2.23.1-1.13.i586.rpm
hplip-hpijs-3.14.10-4.2.i586.rpm yast2-printer-2.23.1-1.15.i586.rpm
hplip-sane-3.14.10-4.2.i586.rpm yast2-printer-devel-doc-2.23.1-1.13.i586.rpm
rasterview-1.3-5.14.i586(2).rpm yast2-printer-devel-doc-2.23.1-1.15.i586.rpm
rasterview-1.3-5.14.i586.rpm

so I remove the old HPLIP and HPIJS, but I still cannot install the following RPMs
yast2-printer-2.23.1-1.15.i586.rpm
yast2-printer-devel-doc-2.23.1-1.13.i586.rpm
yast2-printer-devel-doc-2.23.1-1.15.i586.rpm

and I also have the problems when I run the hp-setup
-------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 43, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 59, in <module>
    import hpmudext
ImportError: libusb-1.0.so.0: cannot open shared object file: No such file or directory
---------------------------------------------------------

would you mind to let me know how to do the trouble shooting?

Revision history for this message
Johannes Meixner (jsmeix) said :
#3

I installed a SLES11-SP1 64-bit x86_64 system
on a virtual KVM machine where I selected
only the following patterns:
"minimal", "base", "X11".

Because I have a relatively minimal system
I first installed CUPS and started the cupsd:
----------------------------------------------------------------
# zypper -v in cups
...
The following NEW packages are going to be installed:
  cups 1.3.9-8.30.1
  libdns_sd 0.6.23-11.19.22
  libpoppler5 0.12.3-1.2.44
  poppler-data 0.4.0-1.1.38
  poppler-tools 0.12.3-1.2.44
...

# rccups start
Starting cupsd done
----------------------------------------------------------------

Then I downloaded the needed HPLIP packages:
----------------------------------------------------------------
# wget http://download.opensuse.org/repositories/home:/jsmeix/SLE_11_SP1/x86_64/hplip-3.14.10-4.2.x86_64.rpm

# wget http://download.opensuse.org/repositories/home:/jsmeix/SLE_11_SP1/x86_64/hplip-hpijs-3.14.10-4.2.x86_64.rpm

# wget http://download.opensuse.org/repositories/home:/jsmeix/SLE_11_SP1/x86_64/hplip-sane-3.14.10-4.2.x86_64.rpm
----------------------------------------------------------------

Then I tried to install them to see what other
stuff RPM requires:
----------------------------------------------------------------
# rpm -Uhv hplip*rpm
warning: hplip-3.14.10-4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 250f3907
error: Failed dependencies:
        foomatic-filters is needed by hplip-3.14.10-4.2.x86_64
        python-qt4 is needed by hplip-3.14.10-4.2.x86_64
        python-gobject2 is needed by hplip-3.14.10-4.2.x86_64
        libsane.so.1()(64bit) is needed by hplip-3.14.10-4.2.x86_64
        libusb-1.0.so.0()(64bit) is needed by hplip-3.14.10-4.2.x86_64
        libusb-1.0.so.0()(64bit) is needed by hplip-hpijs-3.14.10-4.2.x86_64
        libusb-1.0.so.0()(64bit) is needed by hplip-sane-3.14.10-4.2.x86_64
----------------------------------------------------------------

Then I used zypper to install what is required
from zypper's the usual default repository:
----------------------------------------------------------------
# zypper -v in 'libusb-1.0.so.0()(64bit)'
...
The following NEW package is going to be installed:
  libusb-1_0-0 0.9.3-4.22
...

# zypper -v in 'libsane.so.1()(64bit)'
...
The following NEW packages are going to be installed:
  libieee1284 0.2.11-31.14
  sane-backends 1.0.20-7.1.115
...

# zypper -v in 'python-gobject2'
...
The following NEW package is going to be installed:
  python-gobject2 2.20.0-1.1.56
...

# zypper -v in 'python-qt4'
...
The following NEW packages are going to be installed:
  libQtWebKit4 4.6.2-1.6.9
  python-qt4 4.6.2-0.1.87
  python-sip 4.9.2-0.1.59
...

# zypper -v in 'foomatic-filters'
...
The following NEW packages are going to be installed:
  a2ps 4.13-1326.33
  foomatic-filters 3.0.2-269.33.1
  wdiff 0.5.2-756.21
...
----------------------------------------------------------------

Then it worked to install the HPLIP packages:
----------------------------------------------------------------
# rpm -Uhv hplip*rpm
warning: hplip-3.14.10-4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 250f3907
Preparing... ########################################### [100%]
   1:hplip-hpijs ########################################### [ 33%]
   2:hplip-sane ########################################### [ 67%]
   3:hplip ########################################### [100%]
----------------------------------------------------------------

I have a HP LaserJet 1020 that really requires
a proprietary plugin for plain printing:
----------------------------------------------------------------
# lsusb
Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
----------------------------------------------------------------

Because I have a 64-bit x86_64 system with an
older CUPS (the default CUPS 1.3.9 on SLE11-SP1)
I need to do a special tweak to make the newer
HPLIP packages work with the older CUPS:
----------------------------------------------------------------
# ln -s /usr/lib/cups/backend/hp /usr/lib64/cups/backend/hp
----------------------------------------------------------------
The older CUPS still uses /usr/lib64/cups
while the newer HPLIP packages already
use /usr/lib/cups in any case, cf.
http://bugzilla.opensuse.org/show_bug.cgi?id=575544#c2

Such special tweaks are one reason why I wrote at
https://build.opensuse.org/project/show/home:jsmeix
----------------------------------------------------------------
Packages in the "home:jsmeix" project might
neither be in usable state nor fit into
currently installed systems.
Have this in mind if you think about to
install packages from "home:jsmeix" into
your currently running system.
----------------------------------------------------------------

It seems you have a 32-bit x86 system where
no such special tweak is needed.

Finally I can run "hp-setup":
----------------------------------------------------------------
# hp-setup -i

HP Linux Imaging and Printing System (ver. 3.14.10)
Printer/Fax Setup Utility ver. 9.0
...
0* usb Universal Serial Bus (USB)
...
Setting up device: hp:/usb/HP_LaserJet_1020?serial=JL50HRE
...
HP Linux Imaging and Printing System (ver. 3.14.10)
Plugin Download and Install Utility ver. 2.1
...
Downloading plug-in ...
...
HP Linux Imaging and Printing System (ver. 3.14.10)
Plugin Installer ver. 3.0
...
Plug-in version: 3.14.10
Installed HPLIP version: 3.14.10
Number of files to install: 26
...
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

Done.

Done.

PRINT QUEUE SETUP
...
Found PPD file: /usr/share/cups/model/manufacturer-PPDs/hplip-plugin/hp-laserjet_1020-hpijs.ppd.gz
...
----------------------------------------------------------------

To be on the safe side I manually uploaded the
firmware into my printer (that requires it):
----------------------------------------------------------------
# hp-firmware -p lj1020
...
Using device: hp:/usb/HP_LaserJet_1020?serial=JL50HRE

Done.
----------------------------------------------------------------
cf. my bad experience in the past with that device
https://bugs.launchpad.net/hplip/+bug/187049

A test print
----------------------------------------------------------------
# echo hello | lp -d lj1020
request id is lj1020-1 (1 file(s))
----------------------------------------------------------------
worked for me.

Revision history for this message
Johannes Meixner (jsmeix) said :
#4

Regarding how to manually download the plugin
when the target system has no Internet connection:

On a system with internet connection do
either
----------------------------------------------------------------
# wget http://hplipopensource.com/hplip-web/plugin/hplip-3.14.10-plugin.run
----------------------------------------------------------------
or
----------------------------------------------------------------
# wget http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.14.10-plugin.run
----------------------------------------------------------------
to download hplip-3.14.10-plugin.run

Then copy hplip-3.14.10-plugin.run onto the
target system e.g. to
/tmp/hplip-3.14.10-plugin.run

On the target system run
----------------------------------------------------------------
# hp-plugin -i
...
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? y
  Option Description
  ---------- --------------------------------------------------
  d Download plug-in from HP (recomended)
  p Specify a path to the plug-in (advanced)
  q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? p
Enter the path to the 'hplip-3.14.10-plugin.run' file (q=quit) : /tmp/hplip-3.14.10-plugin.run
...
Plug-in GPG file [file:///root/hplip-3.14.10-plugin.run.asc] download failed: No such file or directory
error: Failed to download /root/.hplip/hplip-3.14.10-plugin.run.asc
Do you still want to install the plug-in? (y=yes, n=no*, q=quit) ? y
...
INSTALLING PLUG-IN
...
Plug-in version: 3.14.10
Installed HPLIP version: 3.14.10
Number of files to install: 26

You must agree to the license terms before installing the plug-in:
...
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

Done.
----------------------------------------------------------------

Revision history for this message
Louis (louis-0) said :
#5

Thanks for the support, the problems has been solved after I update to the Suse Linux Enterprise 12