Hello
I was looking at DruTeX on windows, I think there a couple of portability issues,
I think the paths are hard coded as `/' rather than `\' ,
also on windows the latex.exe executable will not die automatically if there is no standard input.
eg latex_tools.inc line 91 has
exec('latex',$latex_output,$latex_result)
though on windows this blocks as latex waits for input. as a result the configure tab can never be opened.
This is the apache log:
[Mon Jun 04 00:11:48 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Group\Apache2
If I change the command to
exec('latex nonexistant.tex -interaction=batchmode',....)
then the configure page becomes available, but still no output, rather "red TeX embedding failed"
probably a problem with the paths.
Please be in contact if there are people interested in getting this working.
Comments
Comment #1
kraps commentedI found one solution.
In addition to your corrections,
if you installed Cygwin in your windows, e.g. "c:/cygwin/bin" is the directory
for executable files, you can change "drutex_render.inc" as follows:
Comment out line 242 : $cmd=trim($cmd)
Add the following:
if ($cmd) {
$cmd1="c:/cygwin/bin/bash -c '$cmd '";
exec($cmd1, $cmd_output, $cmd_retval);
It works fine in my website.
Comment #2
steven jones commentedI've never had a need to use DruTeX on a windows webserver, but if there is a demand for this then perhaps we can all do some bug testing and development toward it.
Comment #3
bdeegee commentedI have a need for DruTex on a windows server. Thanks!
Comment #4
steven jones commentedOkay, when I have time I will look into this. Otherwise, feel free to make a patch :-)
Comment #5
cmarticus commentedAnyone came up with a patch or process for getting Drutex to work on windows?
Comment #6
Mgccl commentedI really wish I can test out Drutex
sadly, i'm using windows
Comment #7
steven jones commentedOkay, I did a bit of work on this. The configure page should work on all platforms, in HEAD, have a look at the dev snapshot.
The issue now is that Linux uses: ':' to separate commands on the same command line. But windows uses '&'.
Set the conversion format to 'custom' on the input format page and enter:
for dvipng.
This works on my machine. Please test if you have an interest. Let's get rid of bugs and get a point release out. :)
Comment #8
steven jones commentedPlease wait for the dev snapshot of the DRUPAL-5--2 branch to show up, or test from CVS. But then if you're interested in this please test.
I'd like to add default conversion formats for windows before releasing.
Comment #9
steven jones commentedI'm going to make a point release soon, so patching against 1.x
Comment #10
steven jones commentedDefaults added to 5.x-1.x
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.