On Nov 12, 2004, at 6:28 AM, Peter Doerfler wrote:
When I execute texvc in the shell it works fine. I
even tried the
command and
arguments printed as debug message by Math.php and it works fine. Done
this
way the formula is correctly displayed in the wiki page. However, when
texvc
is called by Math.php only the .tex file is created and creation of
the .png
fails.
Generally this happens because the login environment and the web server
environment are different; for instance they may be physically separate
machines, or they may simply have different paths and permissions.
If you do 'which latex' etc in a login on
login.sourceforge.net you
find everything ready:
latex: /usr/bin/latex
dvips: /usr/bin/dvips
gs: /usr/bin/gs
convert: /usr/bin/convert
Run the same check from a PHP script running on the projects web server:
latex:
dvips:
gs:
convert: /usr/X11R6/bin/convert
latex, dvips, and gs just aren't _there_ in /usr/bin on the web server.
You'll also find that the shell and web environments are running
different Linux kernel versions, different versions of PHP, etc. If you
need these things available, you can make a support request on
SourceForge.net, but it could take a while before they get to you.
-- brion vibber (brion @
pobox.com)