Issue 27193 - sh: line 1: /usr/bin/lpc: No such file or directory
Summary: sh: line 1: /usr/bin/lpc: No such file or directory
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 1.1.2
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1.2
Assignee: ed
QA Contact: issues@installation
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-03-30 23:12 UTC by pwilk
Modified: 2006-04-04 20:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pwilk 2004-03-30 23:12:01 UTC
When I startup OpenOffice, I get the following error: "sh: line 1: /usr/bin/lpc: No such file or 
directory". Mac OSX keeps lpc in /usr/sbin, so I put a link in /usr/bin that points to sbin, and it worked 
fine.
Comment 1 Olaf Felka 2004-03-31 07:36:31 UTC
Please have a look.
Comment 2 flibby05 2004-03-31 08:22:07 UTC
see also related issue 18287
Comment 3 terryt 2004-03-31 09:46:33 UTC
There are 2 parts to this problem - (a) the fact that these warning messages 
are displayed at all (but it sounds like the other platforms also do this, so 
the Mac OS X specific code probably just does what the other platforms do in 
this respect), (b) the incorrect path is specific to Mac OS X 10.3.x Panther.

I need to check if this has been fixed in the recently released OOo 1.1.1rc3 
for Mac OS X Tech Preview, in which some other printing patches were made at 
the very last moment before release.
Comment 4 terryt 2004-04-04 03:59:39 UTC
Part 1 - the debug statements in "psprint/source/printer/printerinfomanager.cxx" probably 
should be wrapped in :

#if OSL_DEBUG_LEVEL > 1
#endif

like the rest of the debugging in that file.

Part 2 - the check for "lpc" is only meant for Mac OS X 10.1.x 'lpr' printing. Newer versions 
of Mac OS X use other means of printing. OOo 1.0.3 and later for Mac OS X don't support 
Mac OS X 10.1.x. I suppose someone could choose to use 'lpr' printing for Mac OS X 
10.2.x and later, but if they do that I suspect they are quite capable of using your 
workaround of creating a symlink.


Bottom line, I not sure anything is going to be changed in the source, although I suppose 
support for Mac OS X 10.1.x printing could be removed, and the source updated to use /
usr/sbin/lpc.

Ed, Dan - opinions?
Comment 5 khendricks 2004-05-09 16:55:36 UTC
Hi,

Fixed with my Panther psprint patches and just committed to ooo112fix2

Kevin
Comment 6 sander_traveling 2004-06-21 13:46:03 UTC
change milestone
Comment 7 Martin Hollmichel 2004-07-05 13:23:05 UTC
set target milestone
Comment 8 Martin Hollmichel 2006-04-04 20:59:53 UTC
close issue