in reply to Installation of WWW::Mechanize Again

If you're using the (Ubuntu) stock Perl interpreter, you want to install Perl modules through apt-get (or whatever other package tool is en vogue on Ubuntu currently). The package is libwww-mechanize-perl.

Don't install modules into the system Perl. Always use the system package manager. If you want to use cpan to install (more current) versions from CPAN, compile and install your own Perl or use local::lib. Neither is hard.

Replies are listed 'Best First'.
Re^2: Installation of WWW::Mechanize Again
by Utilitarian (Vicar) on Sep 08, 2010 at 08:26 UTC
    Echoing Corion's advice.

    On a Debian based system you should

    • apt-cache search $Package::Name to find out the name of the package containing the library
    • sudo apt-get install $package_name-from_above
    Taking this approach ensures you don't mangle your system Perl and also has the advantage of installing all dependencies.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."