http://www.perlmonks.org?node_id=397239


in reply to Re: Require a script not found in @INC array
in thread Require a script not found in @INC array

I added :

use lib qw(/webroot/d/e/depri001/cgi-bin);

but it still doesn't work. Here's what AdminPro says now:

Can't locate config.cgi in @INC (@INC contains: /webroot/d/e/depri001/cgi-bin /etc/perl /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.4/i686-linux /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 /usr/local/lib/site_perl .) line 14.

The cgi-bin path appears in the @INC but it still isn't finding the config.cgi. Thanks for the try.

  • Comment on Re^2: Require a script not found in @INC array

Replies are listed 'Best First'.
Re^3: Require a script not found in @INC array
by dragonchild (Archbishop) on Oct 07, 2004 at 12:04 UTC
    Are you absolutely sure you added what 'pwd' says your directory is?

    Also, have you tried my other suggestion of running the script from somewhere other than your cgi-bin? Like, your home directory.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.