Trying to get Miktex etc working on windows 2003

Trying to get Miktex etc working on windows 2003

by Matt Gibson -
Number of replies: 7
I've installed Miktex, ghostscript etc, and now have a problem because when I go to the texdebug.php page, I find that all 3 of the executables are 'not readable'. The built in mimetex works, but thats it.

The paths are correct, but are on a separate drive from the webserver. Would it matter that the paths have spaces in the names?

"C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe"

Matt
Average of ratings: -
In reply to Matt Gibson

Re: Trying to get Miktex etc working on windows 2003

by Matt Gibson -
Fixed it by removing the quotes. D'oh!

Now I have the problem that it still doesn't display. the texdebug.php page shows this for command output:

Checking executables

latex executable (C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe) is readable
dvips executable (C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe ) is readable
convert executable (C:\Program Files\ImageMagick-6.4.0-Q16\convert.exe ) is readable

base filename for expression is 'd1e56126337cd6e29b16fe759232ce90'

Processing TeX expression:

f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt
$ C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe --interaction=nonstopmode E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.tex
OUTPUT:
RETURN CODE: 1
$ C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe -E E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.dvi -o E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.ps
OUTPUT:
RETURN CODE: 1
$ C:\Program Files\ImageMagick-6.4.0-Q16\convert.exe -density 240 -trim E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.ps E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.gif
OUTPUT:
RETURN CODE: 1








Warning: filemtime() [function.filemtime]: stat failed for E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.gif in E:\Moodle_webserver\moodle\lib\filelib.php on line 560



Warning: filesize() [function.filesize]: stat failed for E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.gif in E:\Moodle_webserver\moodle\lib\filelib.php on line 561



Warning: Cannot modify header information - headers already sent
by (output started at E:\Moodle_webserver\moodle\lib\filelib.php:560)
in E:\Moodle_webserver\moodle\lib\filelib.php on line 592



Warning: fopen(E:\Moodle_webserver/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.gif) [function.fopen]: failed to open stream: No such file or directory in E:\Moodle_webserver\moodle\lib\filelib.php on line 875



In reply to Matt Gibson

Re: Trying to get Miktex etc working on windows 2003

by Marcos Alcozer -
I am at the same step as you and am completely stuck. Please post if you find a resolution.

marcos
In reply to Marcos Alcozer

Re: Trying to get Miktex etc working on windows 2003

by Mauno Korpelainen -

I don't know how Matt solved his MikTeX issue but here is one solution that obviously worked on Windows 2003:

http://moodle.org/mod/forum/discuss.php?d=118478

Windows Vista may have some problems with User Access Control that does not allow using of executable files for IUSER (or other users of Vista) and does not necessarely allow you to change permissions, use system files or folders to save/move temporary images etc.

In reply to Mauno Korpelainen

Re: Trying to get Miktex etc working on windows 2003

by Marcos Alcozer -
Thanks for the reply Mauno. I have gone through those steps and I am a bit further, but still am not getting Tex/Ghostscript to display the image.



Here is my command execution output:

Checking executables

latex executable (C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe) is readable
dvips executable (C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe) is readable
convert executable (C:\Program Files\ImageMagick-6.5.2-Q16\convert.exe) is readable

base filename for expression is 'd1e56126337cd6e29b16fe759232ce90'

Processing TeX expression:

f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt
$ "C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe" --interaction=nonstopmode D:\moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.tex
OUTPUT: This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(D:/moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.tex
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size12.clo"))
("C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\base\latin1.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\base\latexsym.sty")
(d1e56126337cd6e29b16fe759232ce90.aux)
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd")
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd")
("C:\Program Files\MiKTeX 2.7\tex\latex\base\ulasy.fd")
! Undefined control sequence.
l.8 $ f(x)=\Bigint
 _{-\infty}^x~e^{-t^2}dt $
[1] (d1e56126337cd6e29b16fe759232ce90.aux) )
(see the transcript file for additional information)
Output written on d1e56126337cd6e29b16fe759232ce90.dvi (1 page, 436 bytes).
Transcript written on d1e56126337cd6e29b16fe759232ce90.log.
RETURN CODE: 1
$ "C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe" -q -E D:\moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.dvi
OUTPUT:
RETURN CODE: 0
$ "C:\Program Files\ImageMagick-6.5.2-Q16\convert.exe" -density 240 -trim D:\moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.ps D:\moodledata/temp/latex/d1e56126337cd6e29b16fe759232ce90.gif
OUTPUT:
RETURN CODE: 1

In reply to Marcos Alcozer

Re: Trying to get Miktex etc working on windows 2003

by Mauno Korpelainen -

Well if I had to guess something I would guess that permissions could still be changed - some executable files need to be executable and sometimes you need to give also write permissions for used folders for IUSER (or other users) although it is not wise from the point of security if those files are directly web accessible - but they are not inside web root...

Try http://moodle.org/mod/forum/discuss.php?d=106521

In reply to Mauno Korpelainen

Re: Trying to get Miktex etc working on windows 2003

by Marcos Alcozer -
I have gone through it all and still no dice... how odd...

marcos
In reply to Marcos Alcozer

Re: Trying to get Miktex etc working on windows 2003

by Marcos Alcozer -
Alright, I used jsMath as the filter and this resolved all my issues. Heck of a lot easier to setup as well.

marcos