Subject: Re: printing with acroread7 and cups
To: Hubert Feyrer <>
From: Steven M. Bellovin <>
List: tech-kern
Date: 08/31/2005 00:03:44
In message <>, Hubert Feyrer 
>On Tue, 30 Aug 2005, Steven M. Bellovin wrote:
>> I recently converted several machines to use CUPS.  On one of them,
>> which is running 3.0beta, I had to create a link to /usr/pkg/bin/lpr
>> from /emul/linux/usr/bin/lpr in order to print from acroread7.  On
>> other machines, running 2.0.2 and -current -- releases that presumably
>> straddle 3.0beta -- I did not have to do that.  What's going on?
>It probably found /usr/bin/lpr before /usr/pkg/bin/lpr, and didn't use 
>CUPS. Now the Linux Binary first looks in /emul/linux/usr/bin/lpr, finds 
>your link and is happy.
>The problem is that you have two lpr binaries, and the wrong one is found 
>first - I guess this is more a pkgsrc problem than a kernel problem.
>A workaround is to have /usr/pkg/bin before /usr/bin in $PATH.

I should have supplied more details.  I'd chmod'd /usr/bin/lp* to 
remove the execute bit; I also tried typing /usr/pkg/bin/lpr in 
acroread's dialog box.  It claimed that there was no such file, though 
of course there was.

		--Steven M. Bellovin,