I'm installing fresh on an Oracle setup for a new development server. I'm nearly done and then I'll do it again, but streamlined with what I've learned the first time, and I'll add a guide to the wiki.
I'm not able to get PGlateximage to work. I've tried using each of the test problems in `t/latex_image_test/`but I get the same error:
1. ERROR caught by Translator while processing problem file:local/pie.pg **************** ERRORS from evaluating PG file:
Failed to create directory [WW]/tmp/tikz.gJCzocJw: Permission denied at [PG]/lib/WeBWorK/PG/ImageGenerator.pm line 84 Died within WeBWorK::PG::ImageGenerator::makeTempDirectory called at line 178 of [PG]/lib/LaTeXImage.pm from within LaTeXImage::draw called at line 716 of [PG]/lib/PGcore.pm from within PGcore::insertGraph called at line 650 of [PG]/macros/PG.pl from within main::insertGraph called at line 28 of (eval 1063)
That looks like a permissions issue, but just to experiment,
I set /opt/webwork/webwork2/tmp to 777, and nothing changes.
I added a warn statement in ImageGenerator, at line 79, after
`$success = mkdir $fullPath;`:
(https://github.com/openwebwork/pg/blob/main/lib/WeBWorK/PG/ImageGenerator.pm#L79)
I added:
warn($fullPath." ".$success);
This shows me that `$fullPath` is being constructed as expected:/opt/webwork/webwork2/tmp/tikz.1877xhsN 0 at [PG]/lib/WeBWorK/PG/ImageGenerator.pm line 80
But $success is not happening. It's not successfully executing that mkdir and I don't know why.
This is a shot in the dark but is it possible it is trying to execute like:
mkdir [WW]/tmp/tikz.1877xhsN
with that shorthand in place for /opt/webwork/webwork2?