Manual talk:Enable TeX/problems


 * I have MediaWiki 1.6.1 running on one computer with full math support. One of the necessary steps was installing latex, etc. and creating two temporary files, images/math and images/tmp, with write permission.  That was once explained by a SuSE tutorial web page, which appears to have vanished.  I am now trying to install 1.10.1, had no problem compiling OCaml and texvc, and the command line tests run fine, both with vanilla equations and with \implies.


 * However, texvc generates the error Failed to parse (Can't write to or create math temp directory): I am certain I have the correct permissions on images/math and images/tmp, which are the two required folders for 1.6.1, but the problem remains.  I am doubtful that those are actually the paths texvc is trying to use.


 * There are two things that are inconsistent between the main page here and the version of texvc that came with 1.10.1.
 * The text mentions checking $wgTexvc. The command "grep -r wgTexvc *.php" executed in the root wiki folder gets zero hits.
 * The distributed files contain texvc_cgi.ml which contains hard-coded "tmppath" and "finalpath" values relating to someone's personal computer.
 * I tried changing those values to match my file structure and recompiling texvc, but the "make" file didn't recompile texvc_cgi.


 * I am willing to try variations on the texvc software, but I know nothing about OCaml, so I'm not even confident that I can comment out the intermediate file deletions without breaking something.


 * My guess, based on what I have seen here, is that texvc has been changed since this "problems" page was composed, and the linkage to the temporary and output folders has been broken.

docduke, 07/31/07 0600 GMT

Problems with texvc on Fedora
I'm having trouble to get texvc operate properly on Fedora 7. Having read about the various problems with texvc listed here I'm guessing that my problem is related to the safe_mode issue described in this article. My questions are


 * Can someone confirm that texvc works properly on Fedora 7 without any special fixes?


 * Is there a way to confirm or reject my hypothesis about safe_mode being the cause of the problem. Look in some configuration file, run some test script, or simply look at the version number of a package?


 * I had a look at the so-called "fix" for this problem, found here: http://xylofaan.ulyssis.org/patch/mediawiki/math_safe_mode/.  If this is the remedy for my problem, I would like to have a simpler description of what to do since it is not obvious to me, in point 1), in which file to look.

Thanks --Klano16 10:38, 22 August 2007 (UTC)

Ubuntu
Running the following command: texconfig-sys init solved my issues with texvc. http://www.cygwin.com/ml/cygwin/2005-05/msg00963.html

I installed a bunch of packages before, including latex, tex-base, dvi2ps, dvipng

Problem with the paths
I had great trouble fixing texvc. I followed the instructions but had to spend hours reading PHP code. I found a workaround by myself: the fix was simply adding these lines to LocalSettings.php :

I don't understand, these values are supposed to be the default ones. 82.242.164.80 15:16, 2 March 2008 (UTC)