Home > Installation > Manual Install > Linux Distributions > Ubuntu

# Manual Build and Install Instructions for Ubuntu

# 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 apt repositories.

Enter this command:

    sudo apt-get update

C. Install the required dependency packages.

Enter this command: (choose the appropriate command depending on your version)

Ubuntu 5.04 (Hoary) / 5.10 (Breezy)

    sudo apt-get install --yes --force-yes libcupsys libcupsys2-dev cupsys-bsd build-essential gs-esp openssl libjpeg62-dev libsnmp5-dev build-essential libtool libusb-dev build-essential python-imaging python2.4-qt3 python-dev python python python-reportlab sane libsane-dev sane-utils xsane

Ubuntu 6.06 (Dapper) / 6.10 (Edgy) / 7.04 (Feisty) / 7.10 (Gutsy)

    sudo apt-get install --yes --force-yes libcupsys2 libcupsys2-dev cupsys-bsd build-essential gs-esp openssl libjpeg62-dev libsnmp9-dev build-essential libtool libusb-dev build-essential python-imaging python-qt3 python2.5-dev python python python-reportlab libsane libsane-dev libsane xsane

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

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

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

Example:

    cd hplip-2.8.2

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

Note

Ubuntu 7.04 / 6.10 / 6.06 and later use one of the commands:

32 bit distro users:

    ./configure --enable-network-build --disable-pp-build --enable-fax-build --enable-gui-build --enable-scan-build --enable-doc-build --enable-foomatic-ppd-install --disable-foomatic-drv-install --with-hpppddir=/usr/share/ppd/hpijs/HP --disable-hpijs-only-build --prefix=/usr

64 bit distro users:

    ./configure --enable-network-build --disable-pp-build --enable-fax-build --enable-gui-build --enable-scan-build --enable-doc-build --enable-foomatic-ppd-install --disable-foomatic-drv-install --with-hpppddir=/usr/share/ppd/hpijs/HP --disable-hpijs-only-build --libdir=/usr/lib64 --prefix=/usr

Note

Ubuntu 8.04 / 7.10 use one of the commands below:

32 bit distro users:

    ./configure --enable-network-build --disable-pp-build --enable-fax-build --enable-gui-build --enable-scan-build --enable-doc-build --disable-foomatic-ppd-install --enable-foomatic-drv-install --with-drvdir=/usr/share/cups/drv/hp/ --with-hpppddir=/usr/share/ppd/hpijs/HP --disable-hpijs-only-build --prefix=/usr

64 bit distro users:

    ./configure --enable-network-build --disable-pp-build --enable-fax-build --enable-gui-build --enable-scan-build --enable-doc-build --disable-foomatic-ppd-install --enable-foomatic-drv-install --with-drvdir=/usr/share/cups/drv/hp/ --with-hpppddir=/usr/share/ppd/hpijs/HP --disable-hpijs-only-build --libdir=/usr/lib64 --prefix=/usr

# 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. Run the symlink fix script.

    sudo python ./installer/fix_symlink.py

Or to run the script manually run:

    cat /installer/fix_symlink.py

B. This step will install HPLIP.

Enter this command:

    sudo make install

# Step 7: Post Installation Step(s)

A. 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
2. 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

Page last updated: Tue Feb 5 18:12:20 2008; HPLIP Version: 2.8.2