Can't find RackMonkey::CGI module
For some odd reason... Rackmonkey::CGI.pm is not being picked up... what am I doing incorrectly here?
Thanks!
Can't locate RackMonkey/CGI.pm in @INC (@INC contains:
/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/perl5/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 ./rackmonkey.pl line 34.
BEGIN failed--compilation aborted at ./rackm开发者_运维知识库onkey.pl line 34.
blah blah > locate CGI.pm
/usr/lib/perl5/5.8.8/CGI.pm
use RackMonkey::CGI;
use RackMonkey::Engine;
use RackMonkey::Error;
You don't have Rackmonkey/CGI.pm
in your path. In fact, I bet none of the Rackmonkey::*
modules are in your path.
Here's how to fix it…if your /www/RackMonkey
directory is inside /blahblah/
, then add:
use lib '/blahblah/www/RackMonkey';
above your other use
lines.
The error says it all. There's no RackMonkey component in CGI.pm
's path. Ie - a bare use CGI;
would work here because /usr/lib/perl5/5.8.8
is in @INC
. CGI.pm
would have to live under /some/directory/in/@INC/RackMonkey
in order for use RackMonkey::CGI;
to work out of the box.
See perldoc perlvar
under @INC
, and perldoc -f require
for more info about module inclusion behavior.
精彩评论