Bad file number when creating PDF | topic started 3/24/2002; 1:14:03 PM last post 3/26/2002; 10:26:50 AM |
|
Arnold K. Pizer - Re: Bad file number when creating PDF 3/26/2002; 10:26:50 AM (reads: 1226, responses: 0) |
Hi Jason, It sounds like in your case pdf output was working, but now no longer works. If this is true, almost certainly something has changed, e.g. the location where ghostscript can be found. In the current 1.7 version of WeBWorK, pdf output is created by a call to the gs command. This is controlled by the Local external programs variable $externalGsPath in the file .../system/lib/Global.pm. This command is usually "/usr/bin/gs" or "/usr/local/bin/gs". Check that this is set correctly for your system. Also check that the webserver has permission to run this program although this is a much more unlikely problem. You can see the actual call to this command in the file .../cgi-scripts/welcomeAction.pl. For older versions of WeBWorK, pdf output was controlled by the file .../scripts/makePDF. Again the usual problem is that system dependent path variable is not set correctly. Look at http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$814#815 and/or search for pdf on the sidebar to the left. Arnie |