On a development server that was a clone of our production Webwork 2.15 running on Debian, I am trying to upgrade webwork to 2.16.
With some hints from ChatGPT I was able to get 2.16 installed via git commands on webwork2, and then apache was able to start. Then I learned the instructions didn't cover the pg directory. So I repeated the git commands in pg using
git checkout tags/WeBWorK-2.16 -b upgrade-to-2.16
The VERSION file confirmed it was at 2.16 under pg.
But now apache won't start.
# apachectl configtest
(in cleanup) Can't use an undefined value as a symbol reference at /opt/webwork/webwork2/lib/WeBWorK/CourseEnvironment.pm line 238.
AH00526: Syntax error on line 192 of /etc/apache2/conf-enabled/webwork.conf:
Can't locate PGUtil.pm in @INC (you may need to install the PGUtil module) (@INC contains: /opt/webwork/webwork2/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl /etc/apache2) at /opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm line 39.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm line 39.\nCompilation failed in require at /opt/webwork/webwork2/lib/WebworkSOAP.pm line 6.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WebworkSOAP.pm line 6.\nCompilation failed in require at (eval 239) line 1.\n
Action 'configtest' failed.
Normally that's a hint that a package for PGUtil.pm should be installed for Debian, or cpan
used to install PGUtil. Except nothing in the world knows what this is.
When I run bin/check_modules.pl under pl, it doesn't mention PGUtil at all.
It seems to be something webwork would install, but I don't know what went wrong.
There are lots of detailed how-tos for installing webwork from scratch but the guide for upgrading are a little thin on information.
If there is another approach on how to upgrade to a more current version of webwork and keep our history of courses already
setup in the system, I'm open to suggestions.