https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717 --- Comment #43 from Marco Moreno <mmoreno@pobox.com> --- Here is another way that demonstrates the fix of modifying the @INC array similarly to how I described above: root@koha:~# cd /root root@koha:~# sudo -u library-koha perl -e 'use Authen::CAS::Client; print "Ok\n"' Can't locate Authen/CAS/Client/Response/Failure.pm: ./Authen/CAS/Client/Response/Failure.pm: Permission denied at /usr/share/perl/5.22/base.pm line 97. ...propagated at /usr/share/perl/5.22/base.pm line 106. BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client/Response.pm line 68. Compilation failed in require at /usr/share/perl5/Authen/CAS/Client.pm line 8. BEGIN failed--compilation aborted at /usr/share/perl5/Authen/CAS/Client.pm line 8. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. root@koha:~# sudo -u library-koha perl -e 'BEGIN {pop @INC} use Authen::CAS::Client; print "Ok\n"' Ok -- You are receiving this mail because: You are watching all bug changes.