WeBWorK Main Forum

image generation problem in new installation

image generation problem in new installation

by Jeff Denny -
Number of replies: 2
We have just installed the latest version of webwork on a new unix box. It is running very well at the moment except for generating images in "view as image" mode. Below is what we are getting from the system along with comments from my sysadmin. Any help would be greatly appreciated!

Thanks!

Jeff

-------

Error messages when using "view equations as images":

Warning messages

* cd /opt/webwork/webwork2/tmp/ImageGenerator.ODVE48Xx && /usr/bin/latex
equation > latex.out 2> latex.err failed to generate a DVI file at
/opt/webwork/pg/lib/WeBWorK/PG/ImageGenerator.pm line 358.
* cd /opt/webwork/webwork2/tmp/ImageGenerator.ODVE48Xx &&
/usr/local/bin/dvipng -bgTransparent -D120 -q -depth equation > dvipng.out 2>
dvipng.err returned non-zero status 256: No such file or directory at
/opt/webwork/pg/lib/WeBWorK/PG/ImageGenerator.pm line 364.


Referring to
http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/TroubleshootingImageGenerator
- I have set $WeBWorK::PG::ImageGenerator::PreserveTempFiles to 1. However,
it still doesn't look as though the tmp directories created are being
preserved:

[root@math-webwork tmp]# pwd
/opt/webwork/webwork2/tmp
[root@math-webwork tmp]# ls -la
total 32
drwxrwsr-x 3 apache webwork 4096 Dec 16 22:22 .
drwxr-xr-x 13 root root 4096 Dec 10 18:21 ..
drwxrwxr-x 2 apache webwork 4096 Dec 10 18:21 CVS
-rw-rw-r-- 1 apache webwork 148 Jun 29 2004 README

The timestamp of . changes with each page hit, which makes me think something
is being created in this directory, but it is apparently not being preserved
according to the PreserveTempFiles setting. Until I can get that to happen,
it is going to be hard to troubleshoot. I'm confused as to what, if anything,
I'm doing wrong, as I've set everything according to the documentation that
I'm aware of.


Version info:
Version 2.4.1
Release date: 25-August-2007
CVS tag: rel-2-4-1
CVS branch: rel-2-4-dev

[root@math-webwork webwork2]# latex --version
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
Copyright (C) 1997-2004 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfeTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfeTeX source.
Primary author of pdfeTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry and others.

[root@math-webwork webwork2]# /usr/local/bin/dvipng --version
This is /usr/local/bin/dvipng 1.9 Copyright 2002-2006 Jan-Ake Larsson
dvipng 1.9
kpathsea version 3.5.4
Copyright (C) 2002-2005 Jan-Ake Larsson.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files
named COPYING and dvipng.c.
In reply to Jeff Denny

Re: image generation problem in new installation

by Davide Cervone -
Did you restart the Apache server after making the change to Constants.pm? If not, the server children will not be using the new setting.

Also, you might need to look in the course tmp directory, not the main tmp directory for these files. (I don't remember off the top of my head how they are all set up, but I think this is course specific.)

Davide