delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/21/07:24:39

Date: Wed, 21 Jul 1999 11:00:06 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Wei-Xue Shi <wxshi AT ma DOT neweb DOT ne DOT jp>
cc: djgpp AT delorie DOT com
Subject: Re: Trouble with using man.exe
In-Reply-To: <7n131d$7u4$1@news.telewaynet.ad.jp>
Message-ID: <Pine.SUN.3.91.990721105942.7757I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 20 Jul 1999, Wei-Xue Shi wrote:

> My OS is Windows98(Japanese version). Under DOS prompt,
> I ran `man less', the computer gave a beep and the cursor
> jumped several lines but displayed nothing and hang-up and

Are you sure it was wedged?  Perhaps it is simply a display problem:
Japanese DOS needs special handling of direct screen I/O.  Did you try
to press Q, or some other key, like Ctrl-BREAK?  Also, did you run
your DOS box in Japanese mode or in the US mode?

> I ran `man gcc' tne following message was given
> `Reformatting page. Wait ...c:/djgpp/bin/man.exe:
> c:/djgpp/bin/less.exeorgroff.exe -man -Tascii: No such file or
> directory(ENOENT)'

Do you have Groff installed?  This message (although slightly garbled)
seems to indicate that either less.exe or groff.exe were not found.
man.exe needs Groff to display unformatted man pages.  Many DJGPP
packages come with man pages already formatted, but some don't.

The port of Groff is available as v2gnu/gro110b.zip from any DJGPP
archive.

> I also tried to run man.exe using the editor EMACS for Windows 2.03.10.1,

Is this NTEmacs?  If so, you need to post this question to the NTEmacs
forum.

`M-x man' works for me in Emacs 20.3.10 compiled with DJGPP, but you
need to install several additional programs for it to work: you need
GNU Sed and Gawk (v2gnu/sed302b.zip and v2gnu/gwk303b.zip).  And of
course you need Groff to display unformatted man pages, see above.

> I ran it by M-x man RET gcc RET, the emacs say, at the minibuffer,
> error in process sentinel: *man gcc*: process exited abnormally with code 2,
> and at the window it is writed that
> c:/djgpp/bin/sh: unexpected EOF while looking for `''
> c:/djgpp/bin/sh: -c: line 2: syntax error

You are mixing NTEmacs with DJGPP ports of Bash and other tools, which
is not a good idea.  One problem is that quoting of command-line
arguments is different, and you seem to be hitting this problem here.

I don't use NTEmacs, so I don't know what is the correct setup for
reading man pages with it.  It should work for you out of the box with
the DJGPP version of Emacs, provided that you have the above-mentioned
programs installed.

> And I ran man.exe at the shell mode on emacs,
> only `man less' showed me the less manual, while the
> `man gcc' gave the message
> man gcc^M
> c:/djgpp/bin/man.exe: c:/djgpp/bin/less.exeorgroff.exe -man -Tascii: No such
> file or directory(ENOENT)

This seems to indicate that you indeed don't have Groff installed, and
that the apparent ``hang'' when you ran "man less" from the DOS prompt
was a display problem, not a real hang.  It is possible that
recompiling less.exe from sources with the DJGPP v2.02 library will
fix that, since v2.02 supports Japanese DOS in its direct screen
access functions, while v2.01 did not.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019