Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have downloaded the Mechanize 1.12 version from net. When I executed the command "perl Makefile.PL", I encountered the following warnings:
Warning: prerequisite HTML::Form 1.038 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite HTML::TokeParser 2.28 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite HTTP::Request 1.3 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite LWP 5.76 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite LWP::UserAgent 2.024 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite Test::More failed to load: Can't locate Test/More.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at (eval 33) line 3.
Warning: prerequisite URI 1.25 not found at /opt/perl/lib/5.6.1/ExtUtils/MakeMaker.pm line 343.

What should be done to eliminate these warnings?

Further, if I ignore these warnings and type "make test" on the command prompt after typing "make" then I get errors. The summary of the error is "Test returned status 2 (wstat 512, 0x200). FAILED--49 test scripts could be run, alas--no output ever seen. *** Error exit code 2".

What should be done to remove the errors?
Thanks
Akhil
  • Comment on Error while installing Mechanize module

Replies are listed 'Best First'.
Re: Error while installing Mechanize module
by ambs (Pilgrim) on Mar 28, 2005 at 13:35 UTC
    You must download those modules and install them first (modules like HTML::Form, HTML::TokeParser).

    A lot of those modules will have a lot of more prerequisites. So, I would suggest you to learn how to use the cpan script. As root, try it on the command line. If you don't have it, try

    perl -MCPAN -e shell
    Then, just follow the onscreen help.

    Alberto Simões

Re: Error while installing Mechanize module
by samizdat (Vicar) on Mar 28, 2005 at 13:57 UTC
    You didn't specify what platform you're on. CPAN is usually the best way to go, but on FreeBSD, there are modules in the Ports Tree which correspond to most of the major CPAN ones. You should use those in preference if you have them.