Re: Errors using installing perl modules




Quoth Manuel <gabrielepetrone@xxxxxxxxx>:
i normally used ppm to install perl modules on windows and i never had
any problems. I just switched to linux (xubuntu) and i'm trying to
install WWW::Mechanize but it does not work.

If you are using the perl that came with your system, I generally find
it's easier to install Perl modules using the system package manager
where it supports them. You get all the goodies of your package manager
that CPAN.pm doesn't do, like the ability to uninstall and automatic
upgrades. Since Ubuntu is Debian-based, and Debian are one of the better
OS distributors with regard to packaging Perl modules I would expect
WWW::Mech to be there.

This is what i did ( root user):

root@server:~/Desktop# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install WWW::Mechanize
Running install for module WWW::Mechanize
Running make for P/PE/PETDANCE/WWW-Mechanize-1.32.tar.gz
<snip<

Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Mechanize
-- NOT OK

Doesn't look like you've done anything wrong to me... The next step is
to try 'look WWW::Mechanize', which will drop you in a shell in the
WWW::Mechanize directory, and try running

perl Makefile.PL
make
make install

by hand. If there is an INSTALL or README file you could read it, to see
if there are any particular issues with this module that CPAN.pm doesn't
know about. If Makefile.PL still fails (that is, if it doesn't generate
a Makefile) then post the transcript again and we'll have another look
:).

Ben

.



Relevant Pages

  • Re: Mbox2MailDir [was]Re: moving from stock IMAP server to Cyrus IMAP.
    ... > I did try that and I couldn't locate a RPM for the NetxAP module. ... > I said RPM as opposed to using CPAN to install it) and thus it didn't ... I am using cpan2rpm to instantly build RPMs from CPAN Perl modules. ...
    (Fedora)
  • Re: Mbox2MailDir [was]Re: moving from stock IMAP server to Cyrus IMAP.
    ... >> I said RPM as opposed to using CPAN to install it) and thus it didn't ... > I am using cpan2rpm to instantly build RPMs from CPAN Perl modules. ... I just installed CPAN2RPM and tried to get it to make a RPM out of NetxAP. ...
    (Fedora)
  • Proposed CPAN module: Audio::LADSPA
    ... I plan to release on CPAN "soon", ... This is a set of extensions to host LADSPA plugins, ... To install this module type the following: ... this extension requires the following Perl modules; ...
    (comp.lang.perl.modules)
  • Re: Ubuntu and Perl
    ... The more I think of having duplicate packages (latest from CPAN for me) dependent packages installed by Ubuntu, the more I don't like it. ... I just install from CPAN. ... the good perl modules is valiant, ...
    (Ubuntu)
  • Re: CPAN, perl, dependencies, apt-get?
    ... > What is the easiest way to install a module from CPAN that has several ... > module depends on a few other perl modules. ... Can CPAN already do this? ... CPAN can do this for dependencies on other Perl modules. ...
    (perl.beginners)