http://www.perlmonks.org?node_id=1074509


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

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.

  • Comment on Re^2: Why won't local::lib tell me what to put in .bashrc?

Replies are listed 'Best First'.
Re^3: Why won't local::lib tell me what to put in .bashrc?
by marto (Cardinal) on Feb 11, 2014 at 21:22 UTC

    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.

        Thanks. Can you tell me which version of local::lib you have? The first thing we should do is check that you are not hitting a current or recently resolved bug, that is to say a bug which has been fixed in version released since the one you are using.

        If this turns up nothing then we have to be able to replicate the problem. At this stage it would be helpful if you can replicate this on your system. The next step would be to look at the code to see if we can pinpoint the cause of the problem and if possible provide a patch to resolve the issue.

        Patch or not, once we're sure the problem can be replicated a bug should be raised. Let me know if you need any help with this, though my free time is fairly limited at the time being.