Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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:


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


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/ line 225 Fetching with LWP: LWP failed with code[403] message[Forbidden] Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get "" curl: (22) The requested URL returned error: 403 Forbidden Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//" > /[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 "" --2014-05-09 09:39:57-- +.gz Resolving, Connecting to||: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 " +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 "" 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

Replies are listed 'Best First'.
Re: Local::Lib Install Fails
by MidLifeXis (Monsignor) 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?


      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1085603]
Front-paged by GotToBTru
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2018-06-19 07:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.