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.
-----------------------------------------------------------------------------

Reply via email to