Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
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


In reply to Local::Lib Install Fails by doubleqq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (5)
    As of 2015-07-07 02:06 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (86 votes), past polls