sudo aptitude install libwww-perl
will get you there. If that's not sufficient, paste your error message. | [reply] [d/l] |
I seem to remember having this problem. moritz is right to point you to the package. I think it's generally a good idea to stick with the Ubuntu packages whenever the needed module (and needed version of the module) is packaged. http://packages.ubuntu.com/search?suite=hardy&keywords=hardy
Not sure if this is related to the reason you're asking, butI did have a problem installing modules via CPAN on Ubuntu 8.04. It would always fail when trying to fetch with LWP. It would take forever to install anything via CPAN. However, I finally realized I didn't have NcFTP installed.
sudo apt-get install ncftp
After that, it was just a matter of setting the paths for ncftp and ncftpget in config file.
cpan > o conf ncftp /usr/bin/ncftp
cpan > o conf ncftpget /usr/bin/ncftpget
Still don't know why LWP was failing, but I've moved and life has been more pleasurable since. | [reply] [d/l] [select] |
Thanks for this ubuntu link --
Still trying to install WWW::Mechanize. Searched the packages, didn't see it. I added ncftp like you said and tried CPAN again, but got the following error... Any idea what this means?
Thanks,
Matt
cpan> install WWW::Mechanize
CPAN: Storable loaded ok
Going to read /home/matt/.cpan/Metadata
Database was generated on Wed, 20 Aug 2008 20:03:24 GMT
Running install for module WWW::Mechanize
Running make for P/PE/PETDANCE/WWW-Mechanize-1.34.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Can't call method "value" on an undefined value at /usr/share/perl5/IO/Uncompress/RawInflate.pm line 64.
| [reply] |
OK, that's what I wanted to see (that there was an aptitude package to install rather than going through CPAN).
Thanks!
Matt
| [reply] |
Worked like a charm!
Is there a similar way to get, say, WWW::Mechanize? having more CPAN troubles getting that module...
Thanks,
Matt
| [reply] |
The Debian (and Ubuntu) package for a distribution Foo-Bar is always named libfoo-bar-perl.
For most modules like WWW::Mechanize the distribution has the same name as the main module, so look for a package libwww-mechanize-perl. I Don't know if there is such a package in your distribution.
(LWP is a bit special in this regard because the distribution predates the package names that we now know. Luckily apt-cache search perl lwp turns up libwww-perl - WWW client/server library for Perl (aka LWP).)
| [reply] [d/l] [select] |
| [reply] |