HP Linux Imaging and Printing

Print, Scan and Fax Drivers for Linux

Manual Build and Installation Instructions for SLED/SLES 11 SP2

Step 1: Installation Prerequisite Steps

View the current Release Notes for additional information on this release.

Note

You will need root access to complete many of the steps while installing HPLIP. If you do not have root access contact your system admin for assistance.


Step 2: Install Dependency Packages

A. Open a terminal shell.

B. Update your package manager

su -c "zypper refresh"

C. Update Repositories

Mount and add SLED-11-SP2-DVD-x86_64-GM-DVD1.iso/SLES-11-SP2-DVD-x86_64-GM-DVD1.iso and SLE-11-SP2-SDK-DVD-x86_64-GM-DVD1.iso files to repository. Steps to add: 1) Go to yast-> configuration -> repositories 2) Add ISO files.

D. Install the required dependency packages

su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libavahi-devel cups cups-client cupsddk cups-devel dbus-1-devel python-gobject2 gcc-c++ ghostscript-library openssl libjpeg-devel net-snmp-devel glibc libtool libgphoto2-devel libusb-1_0-devel libusb-1_0-0 make wget python-imaging python-qt4 dbus-1-python-devel dbus-1-python python-devel python-xml python-notify python xsane sane-backends"

If above single command does not work then install packages manually one by one.
su -c "zypper install cups-devel"
su -c "zypper install net-snmp-devel"
su -c "zypper install libjpeg-devel"
su -c "zypper install libavahi-devel"
su -c "zypper install cupsddk"
su -c "zypper install libtool"
su -c "zypper install libgphoto2-devel"
su -c "zypper install dbus-1-python-devel"
su -c "zypper install libusb-1_0-devel"
su -c "zypper install cups"
su -c "zypper install cups-client"
su -c "zypper install python-gobject2"
su -c "zypper install gcc-c++"
su -c "zypper install ghostscript-library"
su -c "zypper install openssl"
su -c "zypper install glibc"
su -c "zypper install libusb-1_0-0"
su -c "zypper install make"
su -c "zypper install wget"
su -c "zypper install python-qt4"
su -c "zypper install dbus-1-python"
su -c "zypper install python-devel"
su -c "zypper install python-xml"
su -c "zypper install python"
su -c "zypper install xsane"
su -c "zypper install sane-backends"

E. Remove old hplip and hpijs

su -c "rpm -ev hplip"
su -c "rpm -ev hplip-hpijs"

Step 3: Download HPLIP

Note

We recommend that you download the HPLIP tarball to your home or desktop directory.

A. Click here to Download the Regular Tarball

B. Go to the directory where you downloaded the HPLIP tarball.

Example:

cd ~/Desktop

C. Uncompress the tarball.

Enter this command:

tar xvfz hplip-3.17.10.tar.gz

This will create a directory with the same name as the tarball file.

D. Change your working directory to the hplip-3.17.10 directory.

Example:

cd hplip-3.17.10

Step 4: Configure HPLIP for installation

A. This step configures the development environment and checks that your system is ready to install HPLIP.

Enter this command (select the appropriate command depending on your system configuration):

32 bit distro users:

./configure --with-hpppddir=/usr/share/cups/model/HP --prefix=/usr --enable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --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

64 bit distro users:

./configure --with-hpppddir=/usr/share/cups/model/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --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 --with-cupsbackenddir=/usr/lib64/cups/backend --with-cupsfilterdir=/usr/lib64/cups/filter

For 64 bit distro, open Makefile and search "cupsfilterdir = "and "cupsbackenddir = ". If path is /usr/lib/cups... then replace /usr/lib with /usr/lib64 :

Step 5: Run Make

A. This step will compile the HPLIP source.

Important

You want to run make as a regular user, NOT as root.

Enter this command:

make

Step 6: Run Make Install

A. This step will install HPLIP.

Enter this command:

su -c "make install"

Step 7: Post Installation Step(s)

A. NOTE Add user to the lp and sys group.

  1. If you user not part of lp and sys, add the user to the lp and sys groups.
  2. Logout and Logback in to your system.

B. Open the firewall port for network communication with printer

su -c "/bin/bash ./init-suse-firewall"

C. If you are going to be setting up a printer with USB and the printer is already plugged in, you will need to do one of the following:

  1. Unlpug and re-plug in the USB printer, or Restart your PC.

Failure to do this will cause your USB printer to not be detected by HPLIP.

Step 8: Configuring your printer using hp-setup

Continue to hp-setup