|Posted on Thursday, January 25, 2018 - 1:18 pm: |
We are upgraded to Debian 9 on a compute node (as part of trying to solve another issue) and perl's behavior for default module path appears to have changed. I get the following errors running a job. My IT person seems to think there is a work around. Might this be a webmo version issue?
Can't locate globals.cgi in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/webmo/webmo/run_gamess.cgi line 11.
Post Number: 592
|Posted on Thursday, January 25, 2018 - 3:28 pm: |
Ahh yes, this is a Perl change that was addressed in WebMO 18.
If you are using 'Remote Servers', then use the 'Upgrade' button in the 'Remote Server Manager' for each server. (The files on the head node / web server are updated automatically when you upgrade, but those on remote servers are not.)
|Posted on Thursday, January 25, 2018 - 5:00 pm: |
Does that mean we need to upgrade to 18 and 17 will not work? I don't think we are in the update timeframe? Maybe I didn't understand you description?
|Posted on Thursday, January 25, 2018 - 5:31 pm: |
Also, our IT person found the following 'workaround'...
Adding this the the webmo user's .bashrc ABOVE the "exit if non-interactive" test seems to revert perl behavior to the old system...
### MWH reverts perl back to old behavior of searching the local working directory
# for modules. Webmo scripts reference each other [ require("globals.cgi") ]
# and starting in debian v9 (stretch) . in no longer in @INC by default
### Also, must be above any "if not running interactively" test in .bashrc
Post Number: 593
|Posted on Thursday, January 25, 2018 - 9:19 pm: |
Actually, this is a great workaround! I wasn't aware that one could do that!
|Posted on Friday, January 26, 2018 - 1:06 pm: |
Our IT support person is very good. I'll pass the compliment along to him. You mentioned an upgrade above. I suspect our 17e version is out of the 6 month upgrade period or did you mean an upgrade within 17e? Also, we installed PSI and it runs and completes but webmo thinks it fails. Should I ask about that in a different spot on the forum? Thanks.