in reply to Hell of a time installing module WWW::Mechanize

Your CPAN test results weren't that bad, so looking at CPAN again, it seems that you could be missing some dependencies. WWW::Mechanize has a slough of dependencies that must be installed or updated. One dependency that always bothers me is HTTP::Server::Simple. I've always had to force install it.

Here's a cpan script to install and upgrade the dependencies:

#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install( "Tree::DAG_Node", "Test::Warn", "WWW::RobotRules", "HTTP::Cookies", "Net::FTP", "Net::HTTP", "Digest::base", "Digest::MD5", "HTTP::Negotiate", "File::Listing", "LWP::UserAgent", "HTML::Form", "HTTP::Daemon", "Test", "Text::Wrap", "Pod::Escapes", "Pod::Simple", "Pod::Man", "ExtUtils::MakeMaker", "HTTP::Server::Simple", "Time::Local", "HTTP::Date", "MIME::Base64", "URI", "Encode", "Encode::Locale", "LWP::MediaTypes", "Compress::Raw::Bzip2", "Compress::Raw::Zlib", "IO::Uncompress::Inflate", "HTTP::Status", "ExtUtils::ParseXS", "Module::CoreList", "Module::Load", "Params::Check", "Module::Load::Conditional", "Locale::Maketext::Simple", "IPC::Cmd", "ExtUtils::CBuilder", "Perl::OSType", "IO::Dir", "Version::Requirements", "Exporter", "CPAN::Meta::YAML", "JSON::PP", "Parse::CPAN::Meta", "CPAN::Meta", "Scalar::Util", "File::Spec", "File::Temp", "version", "Module::Metadata", "Module::Build", "HTML::Tagset", "XSLoader", "HTML::Parser", "Sub::Uplevel", "Test::Exception", "HTML::TreeBuilder", "Test::Harness", "Test::More", "Pod::Usage", "WWW::Mechanize");

Replies are listed 'Best First'.
Re^2: Hell of a time installing module WWW::Mechanize
by Anonymous Monk on Jun 10, 2011 at 05:26 UTC
    This script did the trick for me. Many thanks!
Re^2: Hell of a time installing module WWW::Mechanize
by Anonymous Monk on Aug 27, 2011 at 12:52 UTC
    Thank you so much. I was having this same problem and installing and upgrading the dependencies did the trick. Why doesn't CPAN take care of that?

      Thank you so much. I was having this same problem and installing and upgrading the dependencies did the trick. Why doesn't CPAN take care of that?

      CPAN does take care of this

Re^2: Hell of a time installing module WWW::Mechanize
by Anonymous Monk on Jun 21, 2011 at 22:39 UTC
    Thanks, this resolved my problem installing Mechanized as well.