Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074455]
[Corion]: I think there's always some Dell coupon around, at least I got one the last two times I bought a machine from them

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-03-27 12:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.