On 5/23/06, Andrew Lowe andrew.lowe@quantm.net wrote:
[...] I've subsequently set $whUseTex to true and then installed imagemagick etc. I next loaded one of his pages and get in red text:
Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert): [...] If I go into the ....../mediawiki/math directory view the README file and grab the bit of example code for texvc and run it:
texvc /tmp /home/samba/public "y=x+2" iso-8859-1
I get a nice *.png file with y = x+2 rendered on it.
I think I have all of the appropriate apps in place and within
the PATH, all of the above was entered from /var/www/localhost/htdocs/mediawiki, although texvc is in the ....../mediawiki/math dir and I had to explicitly go into this dir for it to run. [...]
texvc should print some characters on the screen, like
Cdaa63ef966cc412541190bc8794731de<i>y</i> ...
I assume that it does that.
Try running texvc as the user that the web server runs under, to see whether some permissions are set incorrectly. And try to simulate the command that MediaWiki uses:
$wgTexvc $wgTmpDirectory $wgTmpDirectory "y=x+2" $wgInputEncoding
where $wgTexvc, $wgTmpDirectory, and $wgInputEncoding are as set in LocalSettings.php. Unless you changed something, the command is:
./math/texvc /var/www/localhost/htdocs/mediawiki/images/tmp /var/www/localhost/htdocs/mediawiki/images/tmp "y=x+2" UTF-8
to be run from /var/www/localhost/htdocs/mediawiki .
Sorry not to give a more focused answer, but I don't know what could be the problem.
Good luck, Jitse