Apache OpenOffice (AOO) Bugzilla – Issue 27193
sh: line 1: /usr/bin/lpc: No such file or directory
Last modified: 2006-04-04 20:59:53 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.
Please have a look.
see also related issue 18287
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.
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?
Hi, Fixed with my Panther psprint patches and just committed to ooo112fix2 Kevin
change milestone
set target milestone
close issue