Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Why won't local::lib tell me what to put in .bashrc?

by marto (Bishop)
on Feb 11, 2014 at 17:20 UTC ( #1074455=note: print w/ replies, xml ) Need Help??


in reply to Why won't local::lib tell me what to put in .bashrc?

Have you tried running .bashrc:

. .bashrc

or logging out then back in?

Update: Consult the local::lib documentation regarding what exactly you should check for in .bashrc.


Comment on Re: Why won't local::lib tell me what to put in .bashrc?
Download Code
Re^2: Why won't local::lib tell me what to put in .bashrc?
by DarkMorford (Novice) on Feb 11, 2014 at 21:11 UTC

    I have logged out and back in, and it hasn't changed anything. For whatever reason, the local::lib bootstrap process is falsely determining that nothing needs to be added to .bashrc to set up the environment. While I have the monks for guidance, other users might not be so lucky and wind up confused when CPAN claims it's set up correctly but fails to install anything.

      So did you add anything to .bashrc and get this working? If we can first of all resolve your issues, we can then investigate problems with local::lib and provide a patch if required so that others get the benifit.

        After looking through the local::lib docs on CPAN, I found that just running perl -Mlocal::lib gave me a set of environment-variable definitions that seem to be working:

        export PERL_LOCAL_LIB_ROOT="/home/smorford/perl5"; export PERL_MB_OPT="--install_base /home/smorford/perl5"; export PERL_MM_OPT="INSTALL_BASE=/home/smorford/perl5"; export PERL5LIB="/home/smorford/perl5/lib/perl5/x86_64-linux-gnu-threa +d-multi:/home/smorford/perl5/lib/perl5"; export PATH="/home/smorford/perl5/bin:$PATH";

        I stuck those at the end of my .bashrc, restarted my shell to set up the environment, and CPAN seems to be letting me install things locally now. Really curious why it didn't display those at the end of the setup procedure, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-12-26 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls