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.
TIA, Viktor
[1] Although the PID is different, never mind that.
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.
Hi,
Tomasz Wegrzanowski wrote:
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)
Okay, no I tried
$ ./texvc `pwd`/tmp `pwd`/out 'x \not\in \Sigma' iso-8859-1
The results are somewhat odd. I only get output in tmp, when I do this within strace. Then I get a tex, aux, log, and a dvi file. So it appears, that the LaTeX call succeeds, but then nothing happens. There is still nothing in out.
Still stuck, Viktor
On Mon, Jun 21, 2004 at 07:47:36PM +0200, Viktor Rosenfeld wrote:
Hi,
Tomasz Wegrzanowski wrote:
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)
Okay, no I tried
$ ./texvc `pwd`/tmp `pwd`/out 'x \not\in \Sigma' iso-8859-1
The results are somewhat odd. I only get output in tmp, when I do this within strace. Then I get a tex, aux, log, and a dvi file. So it appears, that the LaTeX call succeeds, but then nothing happens. There is still nothing in out.
I checked it some more. This is a bug in either new ImageMagick or new GhostScript. It doesn't like arguments from command line any more.
I attach render.ml that fixes both problems - it runs dvips and convert separately (producing one more temporary file), and works correctly with relative paths. - just drop this file into math/ and run make.
I'll commit it to CVS too.
wikitech-l@lists.wikimedia.org