Hi Werner,

This was enough for me to check TMPDIR, and it was not copied over by the
Migration Assistant. The rest was simple enough, and groff now works.
Even eqn seems to be ok.

Thanks to you and Ralph and Patrik and Joerg and Larry for your kind help.

Miklos


On 21/01/2010, at 00:06 AM, Werner LEMBERG wrote:

- it seems that grops that came with 10.6.2 has a problem with any input:

 grops:<standard input>:4:
       fatal error: cannot create temporary file:
                     No such file or directory

 I wonder whether Werner could look-up this error message in the
 source code and say what the problem is.

The message comes from file libs/libgroff/tmpfile.cpp, function
`xtmpfile'.  It passes `groffXXXXXX' as a template for the temporary
file name to the `mkstemp' function and opens it.  A typical name
tried for such a temporary file is e.g. `groff34BXC1'.  The location
of this temporary file is a directory which name is specified by the
following algorithm:

 . If the value of the `GROFF_TMPDIR' environment variable is set,
   use it.

 . Otherwise, if the value of the `TMPDIR' environment variable is
   set, use it.

 . On Windows and MSDOS, try the `TMP' and `TEMP' environment
   variables too.

 . If everything fails, open the file in the `\tmp' directory.

This is explained in groff(1) but a proper hint is missing in
grops(1).  I've just added it.


   Werner





Reply via email to