Subject: | Raw postscript output under Mac OS 10.5.8 Leopard and Ubuntu 10.4 Lucid. No output under OpenBSD 5.0 |
Thanks for the opportunity to test-drive the new Pod::Perldoc
functionality. Under a couple different operating systems (none
brand-new) the perldoc command gave me what looked like raw PDF. Scrolled.
Additionally, it failed completely under OpenBSD 5.0, which is the
current release. Everything but the Mac OS stuff was run under Oracle
VirtualBox.
I don't often call something 'Critical'; I'm using it in this case
because under Ubuntu 10.04 and OpenBSD 5.0 the update appears to be
unusable.
Please let me know what further information I can provide. A comparison
of the behavior under Mac OS 10.5 Leopard before and after upgrading
groff, and of the behavior under Ubuntu 10.04 Lucid Lynx (the current
Long Term Support release) and Ubuntu 11.10 Oneiric Ocelot (the current
release) suggests that some helper application is involved, but I have
no idea which one.
--------------- Mac OS 10.5.8 Leopard -------------------
Mac OS 10.5.8 Leopard is no longer new (current is 10.7 Lion). Under
this, perldoc warned
You have an old groff. Update to version 1.20.1 to good Unicode support.
If you don't upgrade, wide characters may come out oddly.
at /usr/local/perl/5.15.5/lib/5.15.5/Pod/Perldoc.pm line 1325
$ groff -v
GNU groff version 1.19.2
Copyright (C) 2004 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
called subprograms:
GNU grops (groff) version 1.19.2
GNU troff (groff) version 1.19.2
I was able to get going by installing the Darwin Ports groff, which has
a _bunch_ of dependencies, including ghostscript. Post-install I got
$ groff -v
GNU groff version 1.21
Copyright (C) 2009 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
called subprograms:
GNU grops (groff) version 1.21
GNU troff (groff) version 1.21
Notwithstanding the fact that Darwin Ports says it installed ghostscript
9.04_1, there was no 'ghostscript' executable in my path either before
or after the Darwin Ports installation. But it must be there because
printing works.
----------------------- Ubuntu 10.04 Lucid Lynx -------------------
This is the current long-term-support version of Ubuntu. The perldoc
command displayed what looked like raw postscript after upgrading to
3.15_12.
$ groff -v
GNU groff version 1.20.1
Copyright (C) 2009 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
called subprograms:
GNU grops (groff) version 1.20.1
GNU troff (groff) version 1.20.1
$ ghostscript -v
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
Since I appeared to have the version of groff called for, I tried
various permutations of the command line options (e.g. -oman) without
being able to get anything but postscript. I finally force-installed
Pod::Perldoc 3.15 to get myself going again.
-------------------- Ubuntu 11.10 Oneiric Ocelot -------------------
Works beautifully.
$ groff -v
GNU groff version 1.21
Copyright (C) 2009 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
called subprograms:
GNU grops (groff) version 1.21
GNU troff (groff) version 1.21
$ ghostscript -v
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.
------------------------ OpenBSD 5.0 ----------------------------
This is the current OpenBSD, released November 1, 2011.
$ perldoc perlfunc
Can't exec "groff": No such file or directory at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 161.
Use of uninitialized value $version_string in pattern match (m//) at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 162.
Use of uninitialized value $version in concatenation (.) or string at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 163.
Use of uninitialized value $version in string lt at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 166.
You have an old groff. Update to version 1.20.1 to good Unicode support.
If you don't upgrade, wide characters may come out oddly.
at /usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc.pm line 1325
Use of uninitialized value $version in string gt at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 174.
Error while formatting with Pod::Perldoc::ToMan:
open3: exec of groff -man failed at
/usr/local/perl/5.14.2/lib/5.14.2/Pod/Perldoc/ToMan.pm line 213
at /usr/local/perl/5.14.2/bin/perldoc line 9
Got a 0-length file from
/usr/local/perl/5.14.2/lib/5.14.2/pod/perlfunc.pod via Pod::Perldoc::ToMan!?
at /usr/local/perl/5.14.2/bin/perldoc line 9
A force install of Pod::Perldoc got me raw POD output, with the warning
'sh: nroff: not found'. I suppose this is what I got before I installed
Pod-Perldoc-3.15_12, but to tell the truth I don't use OpenBSD much, and
can't actually remember.