in reply to Installing local Perl module

Installing Modules on a Web Server

Replies are listed 'Best First'.
Re^2: Installing local Perl module
by kepler (Scribe) on Feb 07, 2011 at 14:40 UTC
    Hi, It could be the priveleges... I get the error:
    Can't locate Kepler.pm in @INC (@INC contains: /home/username/usr/loca +l/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.8.8/i386-linux +-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl + /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/pe +rl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8 +/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at test.pl line 6.
    I know that it detects:
    /home/username/usr/local/lib/perl5/site_perl/5.6.1
    It detects the use of "use lib qw(/home/cosmos/usr/local/lib/perl5/site_perl/5.6.1);" would give an error otherwise, right? - and I've tryed separetly. But why not the module? It's not there? Regards, Kepler

      My problem is the same. I have put use lib in BEGIN block. I have checked that my locally installed modules are in the @INC, and everything is fine when I run the script from terminal - but not found when I access the script via browser. Permissions are rwx-rx-x, http server (lighty) runs as root.

      Only globally installed modules and those under ./ are loaded. Strange enough I received no error from CGI::Debug, only use warning pragma dropped the usual not in @INC message.

        My problem is the same. I have put use lib in BEGIN block. I have checked that my locally installed modules are in the @INC, and everything is fine when I run the script from terminal - but not found when I access the script via browser. Permissions are rwx-rx-x, http server (lighty) runs as root.

        Is the %ENV the same, are you using the same perl (path can change between users?

        Only globally installed modules and those under ./ are loaded. Strange enough I received no error from CGI::Debug, only use warning pragma dropped the usual not in @INC message.

        Don't describe errors/warnings but copy/paste them instead, thanks