I recently installed some perl modules on my RHEL 5 with perl version 5.8.8, and all installations went fine. I see that the modules exist in @INC, but my TWiki site claims that it cannot find them that return an error: cannot find Net / LDAP.pm in @INC (many paths containing modules), on the TWiki.pm line xx. When I do perl -e 'use Net::LDAP';, it does not return anything, which means that perl can find this module. TWiki was also configured differently and works fine, except for plugins that use certain modules that I had to install, I even added paths to setLib.cfg just in case.Edit:
which perl returns /usr/bin/perl
shebang line twiki/cgi-bin/viewequals#!/usr/bin/perl -wT
perl -MNet::LDAP -e 'print $INC{"Net/LDAP.pm"}, "\n";' returns:
/usr/lib/perl5/site_perl/5.8.8/Net/LDAP.pm
The apache error logs show: [Tue Nov 16 10:53:47 2010] [error] [client 10.76.14.170] [Tue Nov 16 10:53:47 2010] view: INC /usr/lib/perl5/site_perl/5.8.8 at /usr/local/apache2/htdocs/twiki5_pdc/bin/view line 44.Thus, it uses the correct path.
source
share