Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#26461 - [mediawiki][texvc] png conversion failed
Attached to Project:
Community Packages
Opened by Artem A Klevtsov (unikum) - Saturday, 15 October 2011, 21:14 GMT
Last edited by Sergej Pupykin (sergej) - Sunday, 16 October 2011, 09:39 GMT
Opened by Artem A Klevtsov (unikum) - Saturday, 15 October 2011, 21:14 GMT
Last edited by Sergej Pupykin (sergej) - Sunday, 16 October 2011, 09:39 GMT
|
DetailsDescription:
When I try use math tag I recieve following message: ""Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert)"" Additional info: * package version(s) community/mediawiki 1.17.0-3 community/texvc 1.17.0-1 extra/texlive-bin 2011.1-1 extra/imagemagick 6.7.3.0-1 extra/ghostscript 9.04-5 extra/lighttpd 1.4.29-2 extra/php-cgi 5.3.8-4 extra/mysql 5.5.16-1 * config and/or log files etc. All rewuired programs are installed: ~ $ ls -lH `which gs` `which latex` `which dvips` `which convert` `which dvipng` `which texvc` -rwxr-xr-x 1 root root 14088 окт. 11 11:24 /usr/bin/convert -rwxr-xr-x 1 root root 175904 июля 24 23:02 /usr/bin/dvipng -rwxr-xr-x 1 root root 285016 июля 24 23:02 /usr/bin/dvips -rwxr-xr-x 1 root root 9844392 авг. 22 23:22 /usr/bin/gs -rwxr-xr-x 1 root root 903136 июля 24 23:02 /usr/bin/latex -rwxr-xr-x 1 root root 516016 июля 20 17:20 /usr/bin/texvc I success done this checks - http://www.mediawiki.org/wiki/Manual:$wgUseTeX#Diagnostics Steps to reproduce: Install mediawiki on the lighttpd+php-cgi+mysql. Add in LocalSettings.php. $wgUseTeX = true; $wgTexvc = "/usr/bin/texvc"; $wgLatexCommand = "/usr/bin/latex"; $wgImageMagickConvertCommand = "/usr/bin/convert"; Create page with following content: <math>0</math> |
This task depends upon
LocalSettings.php
Then I comment in LocalSettins.php:
#$wgTexvc = "/usr/bin/texvc";
#$wgLatexCommand = "/usr/bin/latex";
Then in /tmp/wiki_latex_error I found:
fatal: memory exhausted (xmalloc of 4000008 bytes).
$wgTexvc = "/usr/bin/texvc";
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgMaxShellMemory = 8000000;
$wgMaxShellFileSize = 1000000;
$wgMaxShellTime = 300;
may be last three lines will help.
$wgUseTeX = true;
$wgMaxShellMemory = 8000000;
$wgMaxShellFileSize = 1000000;
$wgMaxShellTime = 300;
Paths is not required: $wgTexvc, $wgLatexCommand, $wgMathPath, $wgMathDirectory, $wgUploadPath, $wgUploadDirectory.
On my virtual hosting (with apache+mod_php) all work without this directives: $wgMaxShellMemory, $wgMaxShellFileSize, $wgMaxShellTime.
Why its required for lighttpd+php-cgi? May be I should change some settings in php.ini?
I don't understand what is reason of this behaviour.
I've created https://wiki.archlinux.org/index.php/Mediawiki with this tip.