On Sun, Feb 06, 2005 at 06:19:17PM +0000, Ian bell wrote:
Chris Green wrote:
On Sat, Feb 05, 2005 at 10:56:12PM +0000, Ian bell wrote:
You also need to make sure this script runs BEFORE the cups daemon is started.
Yes, I have done that too. In /etc/rc.d/rc.M:-
# Start the HP driver hplip. if [ -x /etc/rc.d/rc.hplip ]; then /etc/rc.d/rc.hplip restart fi
# Start the print spooling system. This will usually be LPD or CUPS. if [ -x /etc/rc.d/rc.cups ]; then # Start CUPS: /etc/rc.d/rc.cups start elif [ -x /usr/sbin/lpd ]; then # Start LPD: echo "Starting the line printer daemon: /usr/sbin/lpd" /usr/sbin/lpd fi
I know you realise this works only if the printer is switched on and connected to the PC when the PC is turned on. And I assume you have a suitable ppd file and saved it in the /usr/share/cups/model/ directory? If you have done all this and it still does not work I am at a loss to see why.
The answer is in the thread here about libsnmp versus libnetsnmp.
I have it working now.
I'm using the network interface of the Officejet 7310. To build the network version of HPLIP it says one requires net-snmp version 5.1.2 or greater. What it doesn't point out is that the configure script builds quite happily without net-snmp and the warning message is in the middle of several hundred lines of ouput, the likelihood of noticing it unless you capture the output and then search for it is just about nil.
So my first problem was that I didn't notice that HPLIP was building without network ability.
Then when I *did* get and build net-snmp it turns out that a bug in the HPLIP configure script means that it looks for the wrong library (it looks for libsnmp.so rather than libnetsnmp.so) so it *still* doesn't build the network interface.
Finally when I fixed the configure script it built OK and now I have my Officejet 7310 working.
I suspect that the Linux versions that they tested the HPLIP build on (RedHat and SuSu I think) bodge the snmp libraries that that there still is a libsnmp.so to build against.