Home > Installation > Manual Install > Linux Distributions > Red Hat 8/9

# Manual Build and Install Instructions for Red Hat 8/9

# Step 1: Installation Prerequisite Steps

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

Note

This process has been tested with Red Hat 8 and Red Hat 9. May work with other version of Red Hat (Enterprise, etc)

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. Install RH8/RH9 Workstation to get gcc development tools. Or use the RH8/RH9
  Package Manager to install the Development Tools.

    Gnome Menu
    System Settings
    Packages

A. Goto the "Development" section, Click "Details" next to "Development Tools.
  Ensure the following packages are installed:

    automake14
    automake15
    cvs
    diffstat
    dmalloc
    doxygen
    gcc-g77
    gcc-gnat
    gcc-java
    indent
    ltrace
    memprof
    patchutils
    rcs
    splint

A. Use the RH8 Package Manager and install CUPS under Printing Support.

    Gnome Menu
    System Settings
    Packages

A. Go to the "System" section, click "Details" next to Printing Support.
  Ensure the following package is installed:

    Cups

A. Start the cupsd daemon:

    su
    /etc/init.d/cups start

A. Install cups-devel. RPM is on RH8 CD #2

    cd /mnt/cdrom/RedHat/RPMS

Note: cd-rom may mount in a different directory. Should be something similiar however.

    rpm -ivh cups-devel-1.1.15-10.i386.rpm

A. Install sane-backends-devel. RPM is on RH8 CD #2.

    cd /mnt/cdrom/RedHat/RPMS
    rpm -ivh sane-backends-devel-1.0.8-5.i386.rpm

A. Update libusb from 0.1.6 to 0.1.8.

    wget http://hplip.sf.net/libusb-0.1.8.tar.gz
    tar xzvf libusb-0.1.8.tar.gz
    cd libusb-0.1.8
    ./configure --prefix=/usr
    make
    su
    make install
    rm /usr/lib/libusb.so
    ln -s /usr/lib/libusb-0.1.4.4.0 /usr/lib/libusb.so
    exit

A. Update xsane from 0.84 to 0.96 (actually 0.92 or higher will work).

    wget http://hplip.sf.net/xsane-0.96.tar.gz
    tar xzvf xsane-0.96.tar.gz
    cd xsane-0.96
    ./configure --prefix=/usr
    make
    su
    make install
    exit

Use the Other Linux Distros page for a list of required depencency packages.

Use your distro documentation for installing the packages.

# 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-2.7.9.tar.gz

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

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

Example:

    cd hplip-2.7.9

# Step 4: Configure HPLIP for installation

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

For specific information on using ./configure and the different options please go here. Also reference your distro documentation and configuration for additional information on which tags are relevant.

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

32 bit distro users (most users will use this command):

    ./configure --prefix=/usr --disable-network-build --disable-fax-build

64 bit distro users

    ./configure --prefix=/usr --libdir=/usr/lib64 --disable-network-build --disable-fax-build

# 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 Steps

A. Start HPLIP daemons.

    /etc/init.d/hplip start

B. Libusb replaces the "printer" kernel module, so we must blacklist
  the "printer" kernel module so it will not be loaded during USB hotplug events. This also means only libusb printer drivers will work when the "printer" kernel module is removed.

a. Add "alias printer off" line to /etc/modules.conf.

Run from terminal:

    su
    gedit /etc/modules.conf

Add to the bottom of the file:

    "alias printer off"
    Save, Exit

b. Add "printer" line to /etc/hotplug/blacklist.

Run from terminal:

    su
    gedit /etc/hotplug/blacklist

Add to the bottom of the file:

    "printer"
    Save, Exit

c. Run:

    su
    /sbin/rmmod printer

C. Restart cupsd so that it will see new the USB printer.

    /etc/init.d/cups restart
    exit

# Step 8: Configuring your printer using hp-setup

A. Run hp-check to verify that your system is configure correctly.

Enter this command:

    hp-check

If any failures try and resolve them depending on the error. Contact the mailing list for support as needed.

# Step 9: Configuring your printer using hp-setup

Continue to hp-setup

Page last updated: Thu Sep 13 10:26:23 2007; HPLIP Version: 2.7.9