Problems displaying "man" pages

Jonathan I. Kamens jik at athena.mit.edu
Fri Apr 26 09:15:04 AEST 1991


  The problem you are having is due to the fact that 4.3reno augments the
standard man macros, and your system doesn't have the augmented macros.

  The easiest short-term solution to this is to get the file
/bsd-sources/share/tmac/tmac.doc from the bsd-sources on uunet, and append it
to the front of the lock.1 file installed in /usr/man/man1 on your system.

  Alternatively, you can do this (note: if /usr/lib/tmac isn't where troff
macros live on your system, then substitute the appropriate directory for
/usr/lib/tmac in the instructions below):

1. Get the files tmac.doc and tmac.andoc from /bsd-sources/share/tmac on uunet.
2. Modify tmac.andoc so that it looks for /usr/lib/tmac/tmac.doc and
   /usr/lib/tmac/tmac.an, rather than /usr/share/tmac/tmac.doc and
   /usr/share/tmac/tmac.an.old.
3. Install tmac.doc and tmac.andoc in /usr/lib/tmac on your system.

Then, to view the man page, you type "nroff -mandoc /usr/man/man1/lock.1 |
more".

  This latter solution won't make "man" display the man page correctly.  You
could install a new version of man to do that, a version that looks for the
andoc macros instead of the an macros.  I don't *think* there's any harm in
using the andoc macros on a man page that was formatted to use only the older
an macros, but I don't know that for certain.  Alternatively, you could just
append the contents of tmac.doc to /usr/lib/tmac/tmac.an on your system, in
which case your current man, catman, etc. will probably do the right thing,
but makewhatis won't work on man pages that are written in the new format.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.questions mailing list