On Thu, Mar 24, 2011 at 11:12 PM, Yanxin Z. <lis...@ruby-forum.com> wrote:
Another question is test cmd:
I have bunch of these errors:
Test returned status 2 (wstat 512, 0x200)
t/random........Can't locate Test/Nginx/Socket.pm in @INC (@INC
contains: inc lib t/lib /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
t/lib/Test/Nginx/Socket/Chunkin.pm line 5.
BEGIN failed--compilation aborted at t/lib/Test/Nginx/Socket/Chunkin.pm
Compilation failed in require at t/random.t line 4.
BEGIN failed--compilation aborted at t/random.t line 4.
Could you help me to figure out the problem?
The problem wit the test command is that you should have Test::Nginx
installed. You can get it from CPAN with something like that:
perl -MCPAN -e 'install Test::Nginx'
If you're missing some dependencies, something like that can do the
trick (did for me on Fedora Core 14):
yum install perl-CPAN perl-Test-Base perl-Test-LongString perl-List-MoreUtils
And you don't have to run tests for the chunkin module to work...