LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   hplip 0.9.3 problems on Slackware 10.1 (https://www.linuxquestions.org/questions/slackware-14/hplip-0-9-3-problems-on-slackware-10-1-a-347305/)

jmp1prs 07-27-2005 10:54 AM

hplip 0.9.3 problems on Slackware 10.1
 
I've been trying to install hplip 0.9.3 on a slack 10.1 for a few days without success; I've followed the hp sourceforge tutorial (hpinkjet.sourceforge.net/install.php), and the instructions in this post:
thread.gmane.org/gmane.linux.drivers.hpofficejet.devel/2117
I installed PyQT and net-snmp.
The application Files are being placed in /usr/local/share/hplip instead /usr/hplip or /usr/share/hplip.
I made a softlink from /usr.hplip/hplip.sh to /etc/rc.d/rc.hplip and I modified the rc.M to start driver in system boot.
But when I send a restart to hplip.sh Fails starting services:

root@Server:/usr/local/share/hplip# ./hplip.sh restart
Stopping hpiod: [ OK ]
Stopping hpssd: [ OK ]
Starting hpiod: [FAILED]
Starting hpssd: [FAILED]

I don't know what I'm doing wrong, Help!!

Best Regards,

Andr�s Pruscino

pdta: here is the output of the ./configure --prefix=/usr

root@Server:/usr/local/src/hplip/hplip-0.9.3# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for pthread_create in -lpthread... yes
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
checking for ANSI C header files... (cached) yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking net-snmp/net-snmp-config.h usability... yes
checking net-snmp/net-snmp-config.h presence... yes
checking for net-snmp/net-snmp-config.h... yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for chkconfig... no
checking for install_initd... no
checking for rpm install... no
checking for network build... yes
checking "for cups backend path"... "using /usr/lib/cups/backend"
checking "for icon directory"... "using /usr/share/applications/hplip.desktop"
checking python/Python.h usability... no
checking python/Python.h presence... no
checking for python/Python.h... no
checking python2.2/Python.h usability... no
checking python2.2/Python.h presence... no
checking for python2.2/Python.h... no
checking python2.3/Python.h usability... no
checking python2.3/Python.h presence... no
checking for python2.3/Python.h... no
checking python2.4/Python.h usability... yes
checking python2.4/Python.h presence... yes
checking for python2.4/Python.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: configuring in prnt/hpijs
configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for jpeg_set_defaults in -ljpeg... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking "for unint32_t"... "found in stdint.h"
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking "for platform-dependencies"... "using Default platform.h"
checking "for cups ppd path"... "using /usr/share/cups/model"
checking "for cups filter path"... "using /usr/lib/cups/filter"
checking "for cups install"... yes
checking "for foomatic install"... yes
checking for working memcmp... yes
checking for strtod... yes
checking for strtol... yes
checking for pow... no
checking for pow in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
root@Server:/usr/local/src/hplip/hplip-0.9.3#

tuxdev 07-28-2005 08:54 AM

1. Which HP printer do you have?.
2. HPIJS is already packaged and is probably installed in Slackware.
3. HPOJ is for multifunction devices only.

It looks like you are actually running FC, and it should have the HPIJS drivers packaged too.

MMYoung 07-28-2005 11:03 AM

I've never had any problems with hplip. All I've ever done is:
Install net-snmp
Install hplip (I've built a slackpack of 0.9.4, if you want it let me know how I can get it to you)
rc.cups stop
I've copied /etc/init.s/hplip to /etc/rc.d/rc.hplip, you could also just symlink it 'ln -s /etc/init.d/hplip /etc/rc.d/rc.hplip' (without the '') either way would work
rc.hplip start
rc.cups start

Next I open the CUPS Web Admin, http://localhost:631, and add my printer.

To make sure that it runs at boot I just add the following to the /etc/rc.d/rc.local:

# Start the HPLIP Printer/Scanner service
if [ -x /etc/rc.d/rc.hplip ]; then
echo "Starting HPLIP Printer/Scanner Daemon"
/etc/rc.d/rc.hplip start
fi

Open the HP Device Manager and it works.

Do this, open a terminal and run:

/usr/share/hplip/toolbox

Post any error messages.

Later,
MMYoung

MMYoung 07-28-2005 11:09 AM

Quote:

Originally posted by tuxdev
2. HPIJS is already packaged and is probably installed in Slackware.
3. HPOJ is for multifunction devices only.

HPLIP is going to evenually replace HPIJS and HPOJ. HPLIP already includes the latest HPIJS and from what I understand from the HPLIP devs, they will all eventually be mereged into one project. But maybe not, you know how those thing go.
Quote:

Originally posted by tuxdev
It looks like you are actually running FC, and it should have the HPIJS drivers packaged too.
FC? Do you mean Fedora?
Code:

checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes

Don't think so ;).

Later,
MMYoung

tuxdev 07-28-2005 11:40 AM

I was looking at the services start with [OK] and [FAILED] cause that is very redhat.

MMYoung 07-28-2005 11:46 AM

Quote:

Originally posted by tuxdev
I was looking at the services start with [OK] and [FAILED] cause that is very redhat.
Yeah, that's because they use a init.d type script. Like most everything, hplip is built with RedHat/Fedora/RPM type distros in mind. Have to "monkey" around with stuff to make it more "slack like".

Anyway, I figured it was something like that, just poking a little fun. No harm meant.

Later,
MMYoung

simcox1 08-11-2005 09:56 AM

I've followed this thread because because I can't get the scanner going on my hppsc1110. I've tried hpijs with hpoj, and also hplip (preferable). I've installed the slackware package from linuxpackages. I get this error:

simon@box:~$ /usr/share/hplip/toolbox
toolbox
toolbox HP Linux Imaging and Printing System (ver. 0.9.4)
toolbox HP Device Manager ver. 5.0
toolbox
toolbox Copyright (c) 2003-5 Hewlett-Packard Development Company, LP
toolbox This software comes with ABSOLUTELY NO WARRANTY.
toolbox This is free software, and you are welcome to distribute it
toolbox under certain conditions. See COPYING file for more details.
toolbox
toolbox Listening on localhost port 32918
toolbox [ERROR]: Unable to connect to HPLIP I/O. Please restart HPLIP and try again.
simon@box:~$

I tried doing as per the post above. Whenever I try to start hplip I get this.

simon@box:~$ /etc/rc.d/rc.hplip restart
Stopping hpiod: Password:
[ OK ]
rm: cannot remove `/var/lock/subsys/hpiod': Permission denied
Stopping hpssd: Password:
/etc/rc.d/rc.hplip: line 48: kill: (2397) - No such process
rm: remove write-protected regular file `/var/run/hpssd.pid'? n
[FAILED]
rm: cannot remove `/var/lock/subsys/hpssd.py': Permission denied
Starting hpiod: [FAILED]
touch: cannot touch `/var/lock/subsys/hpiod': Permission denied
Starting hpssd: [FAILED]
touch: cannot touch `/var/lock/subsys/hpssd.py': Permission denied


If I'm signed in first:

root@box:/home/simon# /etc/rc.d/rc.hplip restart
Stopping hpiod: [ OK ]
Stopping hpssd: /etc/rc.d/rc.hplip: line 48: kill: (2397) - No such process
[FAILED]
Starting hpiod: [FAILED]
Starting hpssd: [ OK ]

I just want to get the scanner up if possible. Printing is fine.

MMYoung 08-11-2005 10:21 AM

Do you have your printer hooked up via a parallel cable or USB? Reason I asked is your printer isn't supported by parallel, only USB.

Also you might want to try stopping cups - /etc/rc.d/rc.cups stop - then restart hplip - /etc/rc.d/rc.hplip restart. If that works then start cups again.

HTH,
MMYoung

simcox1 08-11-2005 11:07 AM

It's USB. I tried stopping cups first. Same error. I suppose I could try uninstalling the hplip that I've got and compiling it. Also I didn't install net-snmp. I wasn't sure what that did.

MMYoung 08-11-2005 11:16 AM

Before you do anything else, stop hplip and install net-snmp. That is REQUIRED for hplip to run. After you install the net-snmp, restart hplip.

HTH,
MMYoung

simcox1 08-11-2005 01:35 PM

OK. Thanks for that. HPLIP will start and stop without errors now. However xsane can't see any scanners and trying to launch the hp toolbox says there are no hp devices installed. I've just reinstalled the printer via localhost, and printing is fine.

sporks 08-11-2005 01:58 PM

Did you configure the scanning device?

I can't remember exactly how but you need to go through the CLI and use hplip to set up a scanning device before SANE will see it.

MMYoung 08-11-2005 02:20 PM

Quote:

Originally posted by sporks
Did you configure the scanning device?

I can't remember exactly how but you need to go through the CLI and use hplip to set up a scanning device before SANE will see it.

I never had to do any manual configure for sane to see my PSC 1610. All I did was start xsane from the console and it found it.

Have you re-set up your printer in CUPS using http://localhost:631, making sure that the uri is correct?

Later,
MMYoung

sporks 08-11-2005 02:23 PM

As I recall using my PSC 750 I need to set up the printer through CUPS.

But for the scanner

% hplip --setup (from memory, may not be right, hplip --help will tell you what you need to do)

It should then scan the system for any connected devices.

simcox1 08-11-2005 02:50 PM

The hplip help files talk about configuring the scanner with the right uri. What is the uri? When I installed my printer using localhost:631 I simply gave it a name etc, the printer was there in the list, I wasn't asked for a uri. Is that an ip address? How do I find that out?


All times are GMT -5. The time now is 07:33 AM.