in reply to not found modules path @INC

Please what is the bug
There is no bug.

provide the solution
Add PerlSwitches -I/usr/local/apache2/cgi-bin/pages to your http.conf so that apache's perl knows where to look for your module.

Replies are listed 'Best First'.
Re^2: not found modules path @INC
by Anonymous Monk on Oct 24, 2010 at 04:31 UTC

    thanks for replay

    I added given statement in httpconf file.

    still facing same issue

    code: httpd.conf
    LoadModule perl_module modules/mod_perl.so PerlRequire conf/startup.pl PerlSwitches -I/usr/local/apache2/cgi-bin/pages
    code: tool.cgi
    BEGIN { print STDERR "\n $_\n" foreach @INC; } use strict; use CGI; use Data::Dumper; use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use web::Home; use CONF;

    And also I found one thing observe below outputs

    output: startup.pl
    /usr/local/apache2/cgi-bin/pages /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
    Output: tool.cgi in STDERR
    /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl

    Here I am not found there module path in tool.cgi sterr output.

      please provide solution