Subject: | local::lib bootstrapping doesn't give full environment variable instructions |
Date: | Wed, 15 Apr 2015 14:32:39 -0600 |
To: | bug-CPAN [...] rt.cpan.org |
From: | Derek Lamb <derek [...] boulder.swri.edu> |
I tried to install a module via CPAN (2.00) on a clean OS X 10.10.1 installation. Before installation, I removed all of ~/.cpan. I ran the CPAN shell as a non-root user. It asked if I wanted to auto-config, I said "yes." It asked if I wanted to bootstrap local::lib. I said "yes". That went OK, then it told me to exit, and add the PERL_MB_OPT and PERL_MM_OPT environment variables to my shell config, restart the shell, and restart cpan shell. I did that. Installation of the module I was attempting, still did not work because I needed to set in my shell config file the variables PATH, PERL5LIB, and PERL_LOCAL_LIB_ROOT. After that, install worked OK.
So basically I think that when cpan tells the user to exit and set some environment variables, it should tell the user about all of the variables, however pedantic it may seem. All the variables can be had with
$ perl -I$HOME/perl5/lib/perl5 -Mlocal::lib