James Steward wrote:
> On Wed, 2007-02-14 at 19:43 -0500, Azhar Bokhari wrote:
>> I have installed the current MinGW. While browsing the directory man,
>> I understand I can view 'man pages' in sub-directories /MinGW/man/man1
>> and /MinGW/man/man2. However, when in MSYS window, I type 'man'
>> command i.e.
>> man g++,
>> I get the following error.
>> sh: man: command not found.
>> I have checked /msys/1.0/bin directory. There is no 'man' binary and
>> neither exists in /MinGW/bin directory.
>> I would appreciate, if you could please advise how I can view man
>> pages included with MinGW distribution and are in /MinGW/man directory
>> after installation.
> man does something like;
> [commands description snipped]
Don't you guys *ever* RTFM? :-) Look under the `Documentation' heading
(And I've answered this very question, quite recently, if you'd troubled
search the archives).
> However, nroff (or groff) is not in my distro of msys/mingw. So unless
> you have nroff you probably won't have much luck. I guess you could try
> compiling it from source!
We provide a mingwPORT for groff:
This will guide you through the build process. As both a groff developer
and a MinGW administrator, I prefer to recommend that, in preference to
GnuWin32 build; I'll provide support as required for the packages I
but not for someone else's.
> Oh - if the man page file is a .gz you can use zcat (if it is
> available ;-) in the commands above.
We also provide a source package for `man', which will handle this,
you needing to care whether the manpage source is plain nroff, .gz, or
Yeah, you need to have MSYS installed, and you have to build the binaries
yourself, but it's fairly straightforward: be sure to read the release
before you begin. The groff mingwPORT is in our `Current' package set,
man is in `Snapshot', at:
>> There are windows groff binaries available from
>> http://gnuwin32.sourceforge.net/packages/groff.htm but I haven't tried
>> them yet.
> Yup, that works.
It should do; it's pretty much just a prebuild of our own mingwPORT, but
see my comments above, concerning support.
> However the rxvt doesn't like some of the escape sequences :-(
So, don't use RXVT, (it's broken anyway)! Don't even try to build groff
from a shell in RXVT -- the build process has been reported to hang, by
more than one user, (and I see this myself). I've given several tips on
configuring a native Woe32 console to run MSYS shell, and this is how I
run it myself. The only feature I lose is easy resizing of the console
window, but the greater stability more than compensates for that.