<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Abbas &#124; Bassu &#187; fixing hplip dependency errors</title>
	<atom:link href="http://bashukhan.com/tag/fixing-hplip-dependency-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://bashukhan.com</link>
	<description>Life&#039;s having zeros and ones all over</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:00:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing HPLIP 3.9.10 on CentOS 5.4 for newer printers (HP LaserJet M1120 MFP)</title>
		<link>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/</link>
		<comments>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 13:34:41 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS hplip drivers with scanner support]]></category>
		<category><![CDATA[fixing hplip dependency errors]]></category>
		<category><![CDATA[HP LaserJet M1120]]></category>
		<category><![CDATA[HP LaserJet M1120 Red Hat]]></category>
		<category><![CDATA[install hplip on CentOS 5]]></category>
		<category><![CDATA[latest hplip 3.9 on CentOS 5.5]]></category>
		<category><![CDATA[photoblog]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=84</guid>
		<description><![CDATA[CentOS 5&#8242;s base repository has an older version of HPLIP, something about &#8217;1.6.7&#8242; or so which of course is not adequate to get newer HP printers specially the LaserJet series, to get to work. Now the natural way to have this installed, you may think is to compile it from source &#8211; if you&#8217;re thinking [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS 5&#8242;s base repository has an older version of HPLIP, something about &#8217;1.6.7&#8242; or so which of course is not adequate to get newer HP printers specially the LaserJet series, to get to work. Now the natural way to have this installed, you may think is to compile it from <em><strong><a title="HPLIP installation from source" href="http://hplipopensource.com/hplip-web/install/manual/distros/centos.html" target="_blank">source</a></strong></em> &#8211; if you&#8217;re thinking that then no, that won&#8217;t help out! Even after fulfilling all of the required dependencies. I got about almost 14 errors when running hp-check utility after compiling, got&#8217;em reduced to 10 but no far lesser than that if you know what I mean.</p>
<pre class="brush: bash;">
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
error: Could not access file: No such file or directory
error: 10 errors and/or warnings.
-----------
| SUMMARY |
-----------
Please refer to the installation instructions at:

http://hplip.sourceforge.net/install/index.html
</pre>
<p>Pretty insane though, many of these dependencies were already installed. I would assume that this would be the reason why hplip is not under active development for CentOS and why its not current under CentOS as I saw quite a few HP&#8217;s devs and techs saying a big &#8220;no&#8221; to this community based distribution when people complained on their Launchpad about these compilation errors. Plus, the relative hplip installation issues I found on CentOS&#8217; forum.</p>
<p>After being in disappointed (oops wth) situation, I tried running the RHEL5&#8242;s rpm (can be downloaded from hplip&#8217;s site) on it after removing the source installed version, but it too gave the dependency errors which I hoped I would resolve and I did later on.</p>
<p><em><strong>Installing&#8230;&#8230;</strong></em></p>
<pre class="brush: bash;">
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/sane/libsane-hpaio.so.1.0.0 from install of hplipfull-3.9.10-0.i386 conflicts with file from package libsane-hpaio-1.6.7-4.1.el5.4.i386
</pre>
<p><em><strong>So, I decided to remove problematic hpijs</strong></em></p>
<pre class="brush: bash;">

 Package                 Arch       Version          Repository        Size

Removing:
 hpijs                   i386       1:1.6.7-4.1.el5.4  installed         588 k
Removing for dependencies:
 libsane-hpaio           i386       1.6.7-4.1.el5.4  installed          94 k
 sane-backends           i386       1.0.18-5.el5     installed         3.1 M
 sane-backends-devel     i386       1.0.18-5.el5     installed          27 k
 sane-backends-libs      i386       1.0.18-5.el5     installed         5.2 M
 xsane                   i386       0.991-5.el5      installed         4.5 M

Transaction Summary
Install      0 Package(s)
Update       0 Package(s)
Remove       6 Package(s)
</pre>
<p><em><strong>But realised soon that it also removed libsane sub-dependency as well.</strong></em></p>
<pre class="brush: bash;">
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
error: Failed dependencies:
 libsane.so.1 is needed by hplipfull-3.9.10-0.i386
 </pre>
<p><em><strong>Because installing sane would also install hpijs and other conflicting stuff as well so the solution here was to remove problematic packages without &#8216;removing&#8217; any dependencies needed.</strong></em></p>
<pre class="brush: bash;">
[root@ToughGuy ~]# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/sane/libsane-hpaio.so.1.0.0 from install of hplipfull-3.9.10-0.i386 conflicts with file from package libsane-hpaio-1.6.7-4.1.el5.4.i386
#
# rpm -ev --nodeps libsane-hpaio
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 file /usr/bin/hpijs from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
 file /usr/lib/libhpip.so.0.0.1 from install of hplipfull-3.9.10-0.i386 conflicts with file from package hpijs-1.6.7-4.1.el5.4.i386
#
# rpm -ev --nodeps hpijs
#
# rpm -ivh /Raid/hplip-3.9.10_rhel-5.0.i386.rpm
Preparing...                ########################################### [100%]
 1:hplipfull              ########################################### [100%]
#
</pre>
<p><em><strong>Concluding the overall steps:</strong></em></p>
<pre class="brush: bash;">
# yum install cups cups-devel ghostscript* PyQt xsane -y
# Download and install hplip-3.9.10_rhel-5.0.i386.rpm from http://hplipopensource.com/hplip-web/install_wizard/index.html choosing RHEL5.
# rpm -ev --nodeps libsane-hpaio
# rpm -ev --nodeps hpijs
# rpm -ivh hplip-3.9.10_rhel-5.0.i386.rpm
# Reboot the system if you're lucky enough, you'll see no errors
# reboot
# system-config-printer
</pre>
<p>And configure the printer now as usual. Just out of curiosity, this was my XenServer where I installed it (yea I know it would sound funny) and I got scanner (LaserJet M1120 is dual scanner and printer) working fine as well with xsane. Check it out <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="attachment_85" class="wp-caption aligncenter" style="width: 310px"><a href="http://bashukhan.com/wp-content/uploads/2009/12/Scan_test.png" rel="lightbox[84]"><img class="size-medium wp-image-85" title="Scan Test HP LaserJet M1120 MFP" src="http://bashukhan.com/wp-content/uploads/2009/12/Scan_test-300x293.png" alt="" width="300" height="293" /></a><p class="wp-caption-text">Scan Test HP LaserJet M1120 MFP</p></div>
<p><strong><span style="color: #000000;">NOTE: </span></strong><span style="color: #000000;">If this post helped you out or provided you with ways of troubleshooting, feel free to say a little thanks <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/installing-hplip-3-9-10-on-centos-5-4-for-newer-printers-hp-laserjet-m1120-mfp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
