Compiling and installing the software

This file documents the procedure for compiling and installing the HP OfficeJet Linux driver (hpoj) software.

In case of difficulty

If something goes wrong with these instructions, then refer to the separate build details and troubleshooting document for more information.

Checking for other necessary software

Before compiling and installing the hpoj software, make sure the following prerequisite commands and packages are already installed on your system. The indented commands are possible ways to check for their existence, but you may need to make adjustments depending on your system.

Checking for and uninstalling an old hpoj version

Special care must be taken if some version of hpoj is already installed on your system and you want to upgrade it to the latest version. Some versions of some distributions provide pre-compiled hpoj packages, but possibly for an older hpoj version. Or you may have previously installed an older hpoj version that you built from source or got as a pre-compiled package from somewhere else.

Try the following commands to determessary, and re-run ldconfig to make your changes take effect.

As an alternative to modifying /etc/ld.so.conf, you can set the environment variable LD_LIBRARY_PATH to /usr/local/lib (or wherever the libraries were installed) before running any of the hpoj programs that depend on libptal.so.

Cleaning up from old hpoj versions

If you're upgrading from an older hpoj version, whether released or from CVS, then there may be outdated files on your system. "make install" checks for these under the installation directory and prints a message asking you to delete any that it finds. However, it will not find them if you install into a different directory from previous versions; in this case, it would be a good idea to delete all files installed by the previous version(s).

If you install the hpoj software into separate unique directories for different versions (such as /opt/hpoj-0.90, etc.), then you should also check /etc/ld.so.conf and remove lines that point to old hpoj versions. However, be careful not to delete the line for the current version, or any line specifying a path containing other libraries on your system that you want to continue to be accessible. Run ldconfig (again, as root) to make your changes to this file take effect.

Next steps

Use the Back button on your browser to return to the previous document, or click here to return to the index.

./usr/share/doc/hpoj/html/setup-build.html0000644000000000000000000002532410215041250020654 0ustar rootroot00000000000000 hpoj: Compiling and installing the software

Compiling and installing the software

This file documents the procedure for compiling and installing the HP OfficeJet Linux driver (hpoj) software.

In case of difficulty

If something goes wrong with these instructions, then refer to the separate build details and troubleshooting document for more information.

Checking for other necessary software

Before compiling and installing the hpoj software, make sure the following prerequisite commands and packages are already installed on your system. The indented commands are possible ways to check for their existence, but you may need to make adjustments depending on your system.