in reply to not found modules path @INC

Add the line to tool.cgi as well:

use lib '/usr/local/apache2/cgi-bin/pages/';

If you want to specify locations where to load modules, you need to specify them everywhere.

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

    Thanks for reply.

    I have several cgi files like that, then it is quite difficult, and also if I do like that then what is use of concept for pre load modules in mod_perl

    I think need to still configure httpd for to load modules, like prel5lib etc..

    Please let me know the correct solution for this

      But you're not using mod_perl for your cgi-bin, ExecCGI is not mod_perl

      PERL5LIB as documented in perlrun, is just another enviroment variable.

        Thank you..

        What should i replace ExecCGI by what. and what else i should have to change in httpd.conf file