Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Install LWP from CPAN on Ubuntu Heron 8.04

by moritz (Cardinal)
on Aug 21, 2008 at 15:06 UTC ( #705809=note: print w/ replies, xml ) Need Help??


in reply to Install LWP from CPAN on Ubuntu Heron 8.04

Why would you want to?

sudo aptitude install libwww-perl

will get you there. If that's not sufficient, paste your error message.


Comment on Re: Install LWP from CPAN on Ubuntu Heron 8.04
Download Code
Re^2: Install LWP from CPAN on Ubuntu Heron 8.04
by mpettis (Beadle) on Aug 21, 2008 at 16:28 UTC
    OK, that's what I wanted to see (that there was an aptitude package to install rather than going through CPAN). Thanks! Matt
Re^2: Install LWP from CPAN on Ubuntu Heron 8.04
by SouthFulcrum (Sexton) on Aug 21, 2008 at 16:31 UTC

    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.

      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.
      
Re^2: Install LWP from CPAN on Ubuntu Heron 8.04
by mpettis (Beadle) on Aug 21, 2008 at 16:40 UTC
    Worked like a charm! Is there a similar way to get, say, WWW::Mechanize? having more CPAN troubles getting that module... Thanks, Matt
      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).)

        aptitude install libwww-mechanize-perl
        Worked great, thanks! matt
        Got it all to work, and I now understand that for many of the CPAN packages I want, there is a corresponding Linux package. Dumb question, but I'll ask anyway -- can someone tell me why some CPAN modules have corresponding Linux (in my case, Ubuntu) packages? Are they for the Perl modules that have some binaries and are not pure Perl? Because some modules download fine in CPAN, and I'd doubt that there is a corresponding Linux package. Thanks, Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://705809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2014-09-20 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls