Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Local::Lib Install Fails

by doubleqq (Acolyte)
on May 09, 2014 at 17:14 UTC ( #1085603=perlquestion: print w/ replies, xml ) Need Help??
doubleqq has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

The issue is that I cannot download CPAN modules from my console, I have to download the modules separately and install them directly from the directory using the Makefile.PL. I tried installing Local::lib to a nondefault directory using the bootstrap method and the bootstrapping proccess returns this error:

Command:

$ perl Makefile.PL --bootstrap=/[Non default directory, not inside my +home directory]/perl/local

Result

Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConf +ig CPAN: Storable loaded ok (v2.20) Going to read '/[Home directory]/.cpan/Metadata' Database was generated on Mon, 10 Feb 2014 19:06:19 GMT CPAN: LWP::UserAgent loaded ok (v5.833) Warning: no success downloading '/[Home directory]/.cpan/sources/autho +rs/01mailrc.txt.gz.tmp29675'. Giving up on it. at /usr/share/perl5/CP +AN/Index.pm line 225 Fetching with LWP: http://www.perl.org/CPAN/authors/01mailrc.txt.gz LWP failed with code[403] message[Forbidden] Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" curl: (22) The requested URL returned error: 403 Forbidden Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//www.perl.org/CPAN/authors/01mailrc.txt.gz" > /[my Home directory]/ +.cpan/sources/authors/01mailrc.txt.tmp29675") returned status 22 (wstat 5632) Warning: expected file [/[My Home directory]/.cpan/sources/authors/01m +ailrc.txt.gz.tmp29675] doesn't exist Trying with "/usr/bin/wget -O /[Home directory]/.cpan/sources/authors/ +01mailrc.txt.tmp29675" to get "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" --2014-05-09 09:39:57-- http://www.perl.org/CPAN/authors/01mailrc.txt +.gz Resolving www.perl.org... 207.171.7.51, 207.171.7.41 Connecting to www.perl.org|207.171.7.51|:80... connected. HTTP request sent, awaiting response... 403 Forbidden 2014-05-09 09:39:57 ERROR 403: Forbidden. Function system("/usr/bin/wget -O /[my Home directory]/.cpan/sourc +es/authors/01mailrc.txt.tmp29675 "http://www.perl.org/CPAN/authors/01 +mailrc.txt.gz" ") returned status 8 (wstat 2048) Warning: expected file [/[my Home directory]/.cpan/sources/authors/01m +ailrc.txt.gz.tmp29675] doesn't exist Trying with "/usr/bin/lynx -source" to get "http://www.perl.org/CPAN/authors/01mailrc.txt.gz" Error while trying to rename '/[Home directory]/.cpan/sources/authors/ +01mailrc.txt.gz.tmp29675' to '/[Home directory]/.cpan/sources/authors +/01mailrc.txt.gz': No such file or directory Warning: prerequisite ExtUtils::MakeMaker 6.74 not found. We have 6.55 +02. Warning: prerequisite Test::More 0 not found. Writing Makefile for local::lib

I did some time ago (several months ago) install local::lib to my home directory, but to install this version of local::lib. It recently started returning similar errors as the one above whenever I tried to use CPAN to install new modules. To update my local::lib to a new directory I removed any mention of it in my .bashrc $PATH variable. I also downloaded my modules separately and uploaded them to this machine not using wget. If I execute print @INC I get the following result:

$ perl -e 'print "@INC"' /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_ +perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5
Similarly, if I echo $PATH I get
/usr/bin/:/usr/local/sbin/:/sbin:/opt/ibutils/bin/:/opt/ibutils/bin/:/ +bin/::$PATH:/[Home directory]/bin

The conceptual piece I am missing is how do I direct Perl/CPAN to install local::lib to my non default directory? I think the issue is that the Makefile.PL continues to reference my home directory, but looking inside the Makefile.PL. I have little idea how to change this.

Any insight to help me install local::lib to my non-default directory would be so much appreciated. Thank you

Comment on Local::Lib Install Fails
Select or Download Code
Re: Local::Lib Install Fails
by MidLifeXis (Prior) on May 09, 2014 at 19:04 UTC

    It looks like you are behind a proxy / firewall. Can you set a proxy password (see $ENV{http_proxy} and family), or can you take a minicpan snapshot on a thumb drive or DVD and use it as the basis for your mirror?

    --MidLifeXis

      Thank you for pointing me in the right direction. Turns out the urllist that was configured on my system was being blocked. Once I updated the urllist with a working CPAN mirror everything proceeded as expected.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1085603]
Front-paged by GotToBTru
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-11-27 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (180 votes), past polls