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

Hi, Has anybody else tried to install LWP on Ubuntu Heron 8.04 via CPAN? I fail while trying to install a bunch of dependencies. I have installed other modules just fine. I'll provide details upon request -- thought this might be a common issue, so I won't pollute the board with the error output unless requested. Thanks, Matt
  • Comment on Install LWP from CPAN on Ubuntu Heron 8.04

Replies are listed 'Best First'.
Re: Install LWP from CPAN on Ubuntu Heron 8.04
by moritz (Cardinal) on Aug 21, 2008 at 15:06 UTC
    Why would you want to?
    sudo aptitude install libwww-perl

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

      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.
        
      OK, that's what I wanted to see (that there was an aptitude package to install rather than going through CPAN). Thanks! Matt
      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).)

Re: Install LWP from CPAN on Ubuntu Heron 8.04
by Lawliet (Curate) on Aug 21, 2008 at 15:21 UTC

    I installed libwww5.813 a while ago with no problems.

    I'm so adjective, I verb nouns!

    chomp; # nom nom nom