in reply to Re^2: Problem installing module in my own home with CPAN.pm
in thread Problem installing module in my own home with CPAN.pm

Bingo! Check the docs for ExtUtils::AutoInstall:

If you do not wish to put a copy of ExtUtils::AutoInstall under inc/, +and are confident that users will have internet access, you may repla +ce the use lib 'inc'; line with this block of code: # ExtUtils::AutoInstall Bootstrap Code, version 7. BEGIN{my$p='ExtUtils::AutoInstall';my$v=0.45;$p->VERSION||0>=$v or+eval"use $p $v;1"or+do{my$e=$ENV{PERL_EXTUTILS_AUTOINSTALL}; (!defined($e)||$e!~m/--(?:default|skip|testonly)/and-t STDIN or eval"use ExtUtils::MakeMaker;WriteMakefile(PREREQ_PM=>{'$p',$v} );1"and exit)and print"==> $p $v required. Install it from CP". "AN? [Y/n] "and<STDIN>!~/^n/i and print"*** Installing $p\n"and do{if (eval '$>' and lc(`sudo -V`) =~ /version/){system('sudo', $^X,"-MCPANPLUS","-e","CPANPLUS::install $p");eval"use $p $v;1" ||system('sudo', $^X, "-MCPAN", "-e", "CPAN::install $p")}eval{ require CPANPLUS;CPANPLUS::install$p};eval"use $p $v;1"or eval{ require CPAN;CPAN::install$p};eval"use $p $v;1"||die"*** Please manually install $p $v from cpan.org first...\n"}}}

I really, really detest all the various autoinstallers.

I'd report the use of AutoInstall as a bug for the module that is failing.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^4: Problem installing module in my own home with CPAN.pm
by blazar (Canon) on Mar 29, 2007 at 13:59 UTC

    Bingo! Check the docs for ExtUtils::AutoInstall:

    [SNIP]

    I really, really detest all the various autoinstallers.

    I'd report the use of AutoInstall as a bug for the module that is failing.

    Ok, I'm not sure if I understand all of what's going on, but point is, I did try to install another module, selected more or less randomly, and it went flawlessly. So... how fun! I was just unfortunate with that particular module... Time to ask the admins a favour! ;-)