On Fri, Jun 18, 2004 at 10:22:50PM +0200, Viktor Rosenfeld wrote:
Hi,
I'm trying to get math input working in my own wiki. Unfortunately
something is messed up with my texvc-installation. I know that latex,
dvips, gs and convert are in my apache path. Instead, I think texvc
isn't really working here. When I do:
# mkdir tmp out
# echo | ./texvc tmp out 'x \not\in \Sigma' iso-8859-1
+5e6c5975facb1fd4f0895accca92d451-
I found the file tmp/8435_5e6c5975facb1fd4f0895accca92d451.tex in my tmp
directory. Poking around with strace -f it appears, that latex cannot
find the temporary texfile and consequently texvc gives up. Here's the
relevant bits:
[pid 8446] access("./tmp/8444_bc30a6e8e7394384dc79e75a32f251f3.tex", R_OK) =
-1
ENOENT (No such file or directory)
in the thread that executes latex. I double checked, the file does
exist. [1]
The error message I get is: Parser-Fehler (PNG conversion failed; check
for correct installation of latex, dvips, gs, and convert).
I'm really stuck here.
Try absolute paths. Because latex is extremely stupid and tries
to create files in *current* directory, texvc has to switch current directory
to tmp and then switch back. It seems to be passing full path to latex
after that, what works with absolute paths but doesn't with relative ones
(that's probably bug in texvc, it should pass filename without dirname to latex
and filenames with dirname to everything else)
access() returns ENOENT because at the moment it's executed process is
in tmp directory, and it doesn't contain another tmp/ as a subdir.