Cant get this Tex stuff running

Cant get this Tex stuff running

by werner cyrmon -
Number of replies: 3
Hi
after a new install of moodle I cant get the tex filter to run anymore.
texdebug writes the following:
Warning: filemtime() [function.filemtime]: stat failed for /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.gif in /usr/local/www/moodle/lib/filelib.php on line 560

Warning: filesize() [function.filesize]: stat failed for /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.gif in /usr/local/www/moodle/lib/filelib.php on line 561

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/moodle/lib/filelib.php:560) in /usr/local/www/moodle/lib/filelib.php on line 592

Warning: fopen(/usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.gif) [function.fopen]: failed to open stream: No such file or directory in /usr/local/www/moodle/lib/filelib.php on line 875

and

Checking executables

latex executable (/usr/local/bin/latex) is readable
dvips executable (/usr/local/bin/dvips) is readable
convert executable (/usr/local/bin/convert) is readable

base filename for expression is '05fb37ab9fdcdd2048ddb078019a01f8'

Processing TeX expression:

f(x) = x^2+y^2+z^2
$ /usr/local/bin/latex --interaction=nonstopmode /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.tex
OUTPUT: This is TeX, Version 3.14159 (Web2C 7.2)
(/usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.tex
LaTeX2e <2003/12/01>
(/usr/local/share/texmf/tex/latex/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/share/texmf/tex/latex/size12.clo))
(/usr/local/share/texmf/tex/latex/inputenc.sty
(/usr/local/share/texmf/tex/latex/latin1.def))
(/usr/local/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/local/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/local/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/local/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/local/share/texmf/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/share/texmf/tex/latex/amsfonts/amssymb.sty)
(/usr/local/share/texmf/tex/latex/latexsym.sty)
(05fb37ab9fdcdd2048ddb078019a01f8.aux)
(/usr/local/share/texmf/tex/latex/amsfonts/umsa.fd)
(/usr/local/share/texmf/tex/latex/amsfonts/umsb.fd)
(/usr/local/share/texmf/tex/latex/ulasy.fd) [1]
(05fb37ab9fdcdd2048ddb078019a01f8.aux) )
Output written on 05fb37ab9fdcdd2048ddb078019a01f8.dvi (1 page, 356 bytes).
Transcript written on 05fb37ab9fdcdd2048ddb078019a01f8.log.
RETURN CODE: 0
$ /usr/local/bin/dvips -E /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.dvi -o /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.ps
OUTPUT:
RETURN CODE: 0
$ /usr/local/bin/convert -density 240 -trim /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.ps /usr/local/moodledata/temp/latex/05fb37ab9fdcdd2048ddb078019a01f8.gif
OUTPUT:
RETURN CODE: 1

I think the error is that no *.jpg is generated, but if I run the code line
of the last outpu (convert) by hand, it got created ...

So whats wrong? Any idea?
permissions to /moodledata should be OK, have it all a+w,a+x,a+r for
test purposes

Thx for any hint
Werner

BTW: read in this forum that I have to add some lines to pix.php and texdebug.php
(I am running freebsd).
Doing this results in even more errors

Average of ratings: -
In reply to werner cyrmon

Re: Cant get this Tex stuff running

by Ricardo Monge -

I have the same problema, some body can help us?

Thank's

R. Monge

In reply to werner cyrmon

Re: Cant get this Tex stuff running

by Haruhiko Okumura -
The ImageMagick "convert" calls gs (Ghostscript) to convert *.ps to *.gif. Your interactive shell could locate the path for gs but apache couldn't.
In reply to Haruhiko Okumura

Re: Cant get this Tex stuff running

by Haruhiko Okumura -
The same kind of trouble is being duscussed here (in Japanese).

Yuichi Saotome, who runs FreeBSD, succeeded in generating gif from ps by including the ports path /usr/local/bin in his apache22 path.env file (in /usr/local/etc/apache22/envvars.d).