Wednesday, December 14, 2011

Installing HP printer drivers on Linux

在 Linux 使用 HP 印表機,安裝 Hewlett-Packard Linux Imaging & Printing (HPLIP)

檢查 Linux 系統是否已經安裝 HPLIP
RPM package based distributions (Fedora, SUSE, Mandriva, RHEL, , CentOS, etc):
Run in a terminal window:
$ rpm -qa hplip

參考 http://hplipopensource.com/node/306

確認目前 Linux 所安裝的 HPLIP 版本(若已經安裝) 是否支援欲使用的印表機
http://hplipopensource.com/hplip-web/supported_devices/index.html


安裝或更新 HPLIP 版本
參考 http://hplipopensource.com/hplip-web/install/install/index.html

執行安裝的過程中,可能會遇到缺少一些 package,例如:

warning: There are 4 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python-devel (Python devel - Python development files)
warning: This installer cannot install 'python-devel' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.

以使用 yum 管理 package 為例,檢查所需的 python-devel 名稱
$ yum search
python-devel.i386 : The libraries and header files needed for Python development.
python-devel.x86_64 : The libraries and header files needed for Python development.
wxPython-devel.x86_64 : Development files for wxPython add-on modules

安裝缺少的  python-devel.x86_64 (機器使用 64 bit 的 Linux)
$ yum install python-devel.x86_64

若還缺少其他 package (例如 cups-devel、libusb-devel),以同樣方式安裝。


No comments:

Post a Comment