Me & my fat fingers...

mv lpracct...should read lpraccnt

I dropped the n

Sorry 'bout that.

LPRng adds the lpraccnt;  the default install
of lp doesn't contain one.  If no /usr/sbin/lpraccnt
exists, it can't be copied;  that's a reason you'll
get the error with the mv lpraccnt line.  Once you've
installed lprng and added the symlink, /usr/sbin/lpraccnt
will exist (as a symlink to /usr/local/sbin/lpraccnt)

I think the error can be ignored, but the typo
in the script should be corrected to prevent
future problems.

If the files exist, ls -la should produce soething like this:

samba1# ls -la /usr/sbin/lp*
lrwxr-xr-x  1 root  wheel    19 May 12 23:41 /usr/sbin/lpc ->
/usr/local/sbin/lpc
lrwxr-xr-x  1 root  wheel    19 May 12 23:42 /usr/sbin/lpd ->
/usr/local/sbin/lpd
lrwxr-xr-x  1 root  wheel    24 Feb 13  2001 /usr/sbin/lpraccnt ->
/usr/local/sbin/lpraccnt
-r-xr-xr-x  1 root  bin    8192 May  9 22:52 /usr/sbin/lptest

If they look like the lptest entry, then it isn't a symbolic link.
something in the script failed to create them.

I don't know why else you'd get the error;
try "find / -name "lpr"" to see where the other files may
have been installed to.  /usr/local/bin  /usr/local/sbin
may not be it.

run "ps ax|grep lp" to see what lp-related daemons are running;
the directory may point somewhere else.

Good Luck,

Jim


> -----Original Message-----
> From: Paul Tremblay [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 2:16 PM
> To: LPRng-l (E-mail)
> Subject: Re: LPRng: lprng, lpr not found on make install
> 
> 
> On Mon, Aug 19, 2002 at 12:55:39PM -0400, Van Sickler, Jim wrote:
>  
> > Here's the contents of my "postup" file,
> > which I run after upgrading my OpenBSD distro.
> > Upgrades overwrite the lprng links in /usr/bin
> > and /usr/sbin.  This restores them.
> 
> I checked in /usr/bin, and the files in your script were in fact
> there. Likewise, the files in /usr/sbin were also present. 
> 
> I ran your script, and I got this error message:
> 
> mv:cannot stat 'lpraccnt': No such file or dirctory.
> ln: '/usr/sbin/lpraccnt':File exists
> 
> So I went into the /usr/sbin file and removed the /usr/sbin/lpraccnt
> link. (There was already a previous one called lpraccnt.org from the
> first few times I ran the script.) I ran your script again, and I got
> only the first error message, that the script couldn't find the
> lpraccnt. 
> 
> Then I ran 
> 
> /etc/init.d/lpd start
> 
> This started successfully.
> 
> Then I typed
> 
> lpr /home/paul/tiger.ps
> 
> And I got the same exact error message I have been getting. (The error
> messages in below in this email from my last posting.)
> 
> If I type lpr -V, I see that I am using Patrick Powell's version of
> lpr. Doesn't this mean that the executables are in the right place? 
> 
> I also tried make install again, but I believe that this just puts the
> executables in the wrong places anyway. 
> 
> By the way, I am version 3.8.14 of LPRng.
> 
> Thanks
> 
> Paul
> 
> 
> > 
> > ;;;;;;;;;;;;;;;;;;;;;;;;
> > 
> > cd /usr/bin
> > mv lp lp.org
> > mv lpq lpq.org
> > mv lpr lpr.org
> > mv lprm lprm.org
> > mv lpstat lpstat.org
> > cd /usr/sbin
> > mv lpc lpc.org
> > mv lpd lpd.org
> > mv lpracct lpracct.org
> > ln -s /usr/local/bin/lp /usr/bin/lp
> > ln -s /usr/local/bin/lpq /usr/bin/lpq
> > ln -s /usr/local/bin/lpr /usr/bin/lpr
> > ln -s /usr/local/bin/lprm /usr/bin/lprm
> > ln -s /usr/local/bin/lpstat /usr/bin/lpstat
> > ln -s /usr/local/sbin/lpc /usr/sbin/lpc
> > ln -s /usr/local/sbin/lpd /usr/sbin/lpd
> > ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt
> > 
> > ;;;;;;;;;;;;;;;;;;;;;;;;;
> > 
> > Copy the section above to a file called "postup'
> > in a directory that allows execution.  Then cd to
> > that directory, type in ./postup to run it.
> > 
> > NOTES:
> > 
> >   Be sure postup actually points to the dir's where
> > the lp/lprng executables are.  Correct the
> > lines before you run it, or it won't work...I'm not
> > sure where the defaults for Mandrake's lp installation
> > are.  Verify before you change it.
> > 
> >   Be sure you stop all lp-related daemons before
> > running ./postup
> > 
> > Jim
> > 
> > > -----Original Message-----
> > > From: Paul Tremblay [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, August 17, 2002 2:12 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: LPRng: lprng, lpr not found on make install
> > > 
> > > 
> > > I downloaded the newest version of Lprng. I ran 
> ./install, and then
> > > make with no problems. 
> > > 
> > > However, when I ran make insall, I got this error message:
> > > 
> > > error reading information on service lpr: No such file or 
> directory
> > > error reading information on service lpr: No such file or 
> directory
> > > error reading information on service lpr: No such file or 
> directory
> > > error reading information on service lpr: No such file or 
> directory
> > > error reading information on service lprng: No such file 
> or directory
> > > error reading information on service lprng: No such file 
> or directory
> > > error reading information on service lprng: No such file 
> or directory
> > > error reading information on service lprng: No such file 
> or directory
> > > error reading information on service lprng: No such file 
> or directory
> > > 
> > > If I issue the command lpr, I get his error message:
> > > 
> > > Status Information:
> > >  sending job 'root@localhost+986' to printer@localhost
> > >  connecting to 'localhost', attempt 1
> > >  connected to 'localhost'
> > >  requesting printer printer@localhost
> > >  job 'root@localhost+986' transfer to printer@localhost failed
> > >   error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 
> 'ACK_FAIL'
> > >   sending str '^Bprinter' to printer@localhost
> > >  error msg: 'spool queue for 'printer' does not exist on 
> > > server localhost.localdomain'
> > >  error msg: '   non-existent printer or you need to run 
> 'checkpc -f''
> > > 
> > > If I run checkpc -f, I get no error messages, and if I 
> check in /var/,
> > > then I find the folder for my printer.
> > > 
> > > I am running Mandrake 8.1. My printer is an HP6mp, and it works if
> > > I send a file directly to the device. If I type cat tiger.ps >
> > > /dev/lp0, then I get a picture of a tiger. 
> > > 
> > > I have read the INSTALL directions several times, but 
> could not find
> > > anything to help me. I have tried turning off lpd and 
> then installing,
> > > but I still get the same error message.
> > > 
> > > Thank you
> > > 
> > > 
> > > -- 
> > > ************************
> > > *Paul Tremblay         *
> > > *[EMAIL PROTECTED]*
> > > ************************
> > > 
> > > --------------------------------------------------------------
> > > ---------------
> > > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG 
> MAILING LIST
> > > The address you post from MUST be your subscription address
> > > 
> > > If you need help, send email to [EMAIL PROTECTED] (or 
> lprng-requests
> > > or lprng-digest-requests) with the word 'help' in the body.  
> > > For the impatient,
> > > to subscribe to a list with name LIST,  send mail to 
> > > [EMAIL PROTECTED]
> > > with:                           | example:
> > > subscribe LIST <mailaddr>       |  subscribe lprng-digest 
> > > [EMAIL PROTECTED]
> > > unsubscribe LIST <mailaddr>     |  unsubscribe lprng 
> [EMAIL PROTECTED]
> > > 
> > > If you have major problems,  send email to 
> > > [EMAIL PROTECTED] with the word
> > > LPRNGLIST in the SUBJECT line.
> > > --------------------------------------------------------------
> > > ---------------
> > > 
> > 
> > 
> --------------------------------------------------------------
> ---------------
> > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> > The address you post from MUST be your subscription address
> > 
> > If you need help, send email to [EMAIL PROTECTED] (or 
> lprng-requests
> > or lprng-digest-requests) with the word 'help' in the body. 
>  For the impatient,
> > to subscribe to a list with name LIST,  send mail to 
> [EMAIL PROTECTED]
> > with:                           | example:
> > subscribe LIST <mailaddr>       |  subscribe lprng-digest 
> [EMAIL PROTECTED]
> > unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> > 
> > If you have major problems,  send email to 
> [EMAIL PROTECTED] with the word
> > LPRNGLIST in the SUBJECT line.
> > 
> --------------------------------------------------------------
> ---------------
> 
> -- 
> ************************
> *Paul Tremblay         *
> *[EMAIL PROTECTED]*
> ************************
> 
> --------------------------------------------------------------
> ---------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
> 
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  
> For the impatient,
> to subscribe to a list with name LIST,  send mail to 
> [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest 
> [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> 
> If you have major problems,  send email to 
> [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> --------------------------------------------------------------
> ---------------
> 

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to