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
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConf
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:
LWP failed with code 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:
+//www.perl.org/CPAN/authors/01mailrc.txt.gz" > /[my Home directory]/
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-- http://www.perl.org/CPAN/authors/01mailrc.txt
Resolving www.perl.org... 184.108.40.206, 220.127.116.11
Connecting to www.perl.org|18.104.22.168|: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
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
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
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- 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
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||