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


in reply to Re^2: 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?

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.

Replies are listed 'Best First'.
Re^4: Why won't local::lib tell me what to put in .bashrc?
by DarkMorford (Novice) on Feb 13, 2014 at 04:10 UTC

    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.

        Looks like it's version 2.000004. I'll make a fresh Ubuntu VM tonight or tomorrow and see if I can replicate it there.