From: jrvelman AT mail DOT hac DOT com (John Velman) Newsgroups: comp.os.msdos.djgpp Subject: Q: Set up for groff on an NT platform... Date: 24 Apr 1998 00:46:05 GMT Organization: Hughes Aircraft Company Lines: 183 Message-ID: <6honcd$9kn@hacgate2.hac.com> NNTP-Posting-Host: x-147-17-25-153.es.hac.com Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk A friend of mine has been using unix for many years (most recently with some kind of commercial unix look-alike on a mac). Now his company (and mine) is providing him with a machine with win NT. He has obtained a unix look alike of some kind called MKF Toolkit. It is lacking troff, which he needs. I sent hime the djgpp groff (groff-1.10). After installing, it can't find the DESC files. Unfortunately, I'm still working in win3.11 land, so I don't know many of the ins and outs of getting djgpp programs to work on NT. Following are several sections of his console output, as follows: 1. cat of his environ.ksh (apparently he is running a Korn shell) 2. The output from "set" 3. A cat of the shellscript he uses to invoke groff 4. The output of running that shellscript, 5. A cat of his djgpp.env file In the following, I've globally replaced his prompt, which was his name, with the word "Prompt". Thanks, John Velman jrvelman AT mail DOT hac DOT com --->First, how the environ is set: Prompt% pwd C:/users/jws Prompt% cat environ.ksh #print -r Running $ENV >&2 #+LFN=y alias c=clear l=ls ll="ls -l" cp="cp -i" alias rm="rm -i" alias f="cd c:/users/jws/Filecabinet ; pwd" alias cdmp="cd c:/users/jws/Filecabinet/mp.data ; ls" alias cdmpc="cd c:/users/jws/Filecabinet/mpc.data ; ls" alias cdd="cd c:/data/0078915 ; pwd" alias cdg="cd c:/data/0078915/Applications/groff ; pwd" alias up="cd .. ; pwd; ls;" export HOME="C:/users/jws" export ENVIRON="${HOME}/environ.ksh" export ENV="${ENVIRON}" export DJDIR="c:/data/0078915/Applications/groff" #export DJDIR="c:/data/0078915/applic~1/groff" export DJGPP="${DJDIR}/djgpp.env" export PS1="Prompt% " export PATH="${PATH};.;${HOME}/bin" cd Prompt% -------------------- ---->then the output from 'set' @="-sh" COMPUTERNAME="HSCN21279" COMSPEC="C:\\WINNT\\system32\\cmd.exe" ComSpec="C:\\WINNT\\system32\\cmd.exe" DJDIR="c:/data/0078915/Applications/groff" DJGPP="c:/data/0078915/Applications/groff/djgpp.env" ENV="C:/users/jws/environ.ksh" ENVIRON="C:/users/jws/environ.ksh" ERRNO="6" FULLNAME="Smay, John W" HISTFILE="C:/TEMP/tmp143.aae" HOME="C:/users/jws" HOMEDRIVE="C:" HOMEPATH="\\users\\default" IFS=" " INCLUDE="C:\\buapps\\DevStudio\\DF\\INCLUDE;C:\\buapps\\DevStudio\\VC\\INCLUDE " LIB="C:\\buapps\\DevStudio\\DF\\LIB;C:\\buapps\\DevStudio\\VC\\LIB" LINENO="0" LOGNAME="0078915" MAILCHECK="600" NIC="00805FCD71EE" NUMBER_OF_PROCESSORS="1" NWUSERNAME="0078915" OLDPWD="C:/users/jws" OPTIND="1" OS="Windows_NT" Os2LibPath="C:\\WINNT\\system32\\os2\\dll;" PATH="C:\\HSCAPPS\\Office97\\Office;.;c:\\buapps\\mksnt;C:\\buapps\\DEVSTU~1\\ SHARED~1\\BIN;C:\\buapps\\DEVSTU~1\\DF\\BIN;C:\\buapps\\DEVSTU~1\\VC\\BIN;C:\\ WINNT\\system32;C:\\WINNT;C:\\WINNT\\system32\\nls\\ENGLISH;Z:.;Y;C:\\DATA\\00 78915\\bin;Z:.;Y:.;.;C:/users/jws/bin" PPID="1" PROCESSOR_ARCHITECTURE="x86" PROCESSOR_IDENTIFIER="x86 Family 6 Model 1 Stepping 9, GenuineIntel" PROCESSOR_LEVEL="6" PROCESSOR_REVISION="0109" PS1="Prompt% " PS2="> " PS3="#? " PS4="+ " PWD="C:/users/jws/groff" RANDOM="23808" ROOTDIR="c:/buapps" SECONDS="318" SERVER="HSC-FP03" SHELL="c:/buapps/mksnt/sh.exe" SHELL_VERSION="5.2 Oct 7 1996 14:40:00" SWITCHAR="/" SystemDrive="C:" SystemRoot="C:\\WINNT" TEMP="C:\\TEMP" TMP="C:\\TEMP" TMPDIR="C:/TEMP" ... {some hopefully in-essential things snipped out here} arg="vol" temp="c:/temp" windir="C:\\WINNT" -------------------- ----> then the groff command Prompt% pwd C:/users/jws/bin Prompt% cat fpg C:/data/0078915/Applications/groff/bin/groff.exe $1 Prompt% -------------------- ----> and the response when I execute it Prompt% pwd C:/users/jws/groff Prompt% l apH jv jv1 jv2 Prompt% fpg apH c:/data/0078915/applic~1/groff/bin/groff.exe: can't find `DESC' file c:/data/0078915/applic~1/groff/bin/groff.exe:fatal error: invalid device `ps' Prompt% -------------------- ----> and finally, the djgpp.env itself Prompt% pwd C:/DATA/0078915/Applications/groff Prompt% cat djgpp.env [groff] +GROFF_TMAC_PATH=.;c:/data/0078915/Applications/groff/share/groff/tmac +GROFF_TYPESETTER=ascii +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font [eqn] +GROFF_TMAC_PATH=.;c:/data/0078915/Applications/groff/share/groff/tmac +GROFF_TYPESETTER=ascii [grodvi] +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font [grolj4] +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font [grops] +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font +GROFF_TMPDIR=c:/data/0078915/Applications/groff/tmp [grotty] +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font [indxbib] +GROFF_EIGN=c:/data/0078915/Applications/groff/share/groff/eign [lkbib] +REFER=c:/data/0078915/Applications/groff/share/Ind [refer] +REFER=c:/data/0078915/Applications/groff/share/Ind +GROFF_TMPDIR=c:/data/0078915/Applications/groff/tmp [troff] +GROFF_TMAC_PATH=.;c:/data/0078915/Applications/groff/share/groff/tmac +GROFF_TYPESETTER=ascii +GROFF_FONT_PATH=.;c:/data/0078915/Applications/groff/share/groff/font Prompt%