RT 5.0.1. module not found despite @INC containing required dir

Hi,

I’m puzzled by practically all scrip executions failing in the following manner (extract from rt5.log):

[1487440] [Thu Jan 26 20:23:38 2023] [error]: Scrip IsApplicable 11 died. - Can’t locate RT::Condition::OwnerChange in @INC (@INC contains: /mnt/local/data1/opt/rt5-poc/sbin/…/local/lib /mnt/local/data1/opt/rt5-poc/local/plugins/RT-IR/lib /mnt/local/data1/opt/rt5-poc/sbin/…/lib /opt/perl5/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux /opt/perl5/perls/perl-5.36.0/lib/site_perl/5.36.0 /opt/perl5/perls/perl-5.36.0/lib/5.36.0/x86_64-linux /opt/perl5/perls/perl-5.36.0/lib/5.36.0) at /mnt/local/data1/opt/rt5-poc/sbin/…/lib/RT/ScripCondition.pm line 179. (/mnt/local/data1/opt/rt5-poc/sbin/…/lib/RT/Scrip.pm:607)

The odd thing is that @INC does contain the required path, namely /mnt/local/data1/opt/rt5-poc/sbin/…/lib under which RT::Condition::OwnerChange is available. Can this inability to find a module in the INC path be due to symlinked dirs along the path?

An observation: lib/RT/Condition.pm has a syntax error (missing semicolon) in RT-5.0.1 on line 201. It’s fixed in RT-5.0.3. Fixing that in RT-5.0.1 does not solve the problem however.

And after fixing one bug in perl 5.36.0 base.pm it seems scrips get successfully loaded …