Skip to content
This repository

Cannot switch from an install with local::lib to one without #305

Open
karenetheridge opened this Issue · 6 comments

4 participants

Karen Etheridge David Golden Kang-min Liu djerius
Karen Etheridge

It does not seem to be possible to switch between an install with a local-lib attached, and one without:

: [ether@tequila ~].6$; perlbrew --version
/Users/ether/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.61
: [ether@tequila ~].6$; which perl
/Users/ether/perl5/perlbrew/perls/16.3/bin/perl
: [ether@tequila ~].6$; perlbrew list
  16.3 (5.16.3)
* 16.3@std
  dev (5.17.6)
  perl-5.14.2
  perl-5.14.3
  perl-5.16.0
  perl-5.16.1
  perl-5.17.6
  perl-5.8.9
: [ether@tequila ~].6$; echo $PERL5LIB
/Users/ether/.perlbrew/libs/16.3@std/lib/perl5
: [ether@tequila ~].6$; perlbrew use 5.17.6
: [ether@tequila ~].6$; which perl
/Users/ether/perl5/perlbrew/perls/perl-5.17.6/bin/perl
: [ether@tequila ~].6$; echo $PERL5LIB
/Users/ether/.perlbrew/libs/16.3@std/lib/perl5
: [ether@tequila ~].6$; unset PERL5LIB
: [ether@tequila ~].6$; perlbrew use 5.17.6
Use of uninitialized value in split at /loader/0x100830208/local/lib.pm line 8.
Karen Etheridge

After others could not repro on irc, I tried in a new shell and cannot repro myself either. I must have had some artifacts from an older perlbrew in the environment; closing until I can reproduce again.

Karen Etheridge karenetheridge closed this
Karen Etheridge karenetheridge reopened this
Karen Etheridge

With a new shell, and simply using a local-lib, I get undef warnings:

: [ether@tequila ~].7$; perlbrew list
  16.3 (5.16.3)
* 16.3@std
  16.3@TB0.98_05
  16.3@TB1.5
  17.10 (5.17.10)
  17.10@std
  17.11 (5.17.11)
  17.11@std
  dev (5.17.6)
  perl-5.14.2
  perl-5.14.3
  perl-5.16.0
  perl-5.16.1
  perl-5.17.6
  perl-5.8.9
: [ether@tequila ~].7$; perlbrew use 17.11@std
Use of uninitialized value in split at /loader/0x10082ee38/local/lib.pm line 8.
Use of uninitialized value in split at /loader/0x10082ee38/local/lib.pm line 8.
: [ether@tequila ~].7$; set | grep PERLBREW
PERLBREW_BASHRC_VERSION=0.62
PERLBREW_HOME=/Users/ether/.perlbrew
PERLBREW_LIB=std
PERLBREW_MANPATH=/Users/ether/.perlbrew/libs/17.11@std/man:/Users/ether/perl5/perlbrew/perls/17.11/man
PERLBREW_PATH=/Users/ether/.perlbrew/libs/17.11@std/bin:/Users/ether/perl5/perlbrew/bin:/Users/ether/perl5/perlbrew/perls/17.11/bin
PERLBREW_PERL=17.11
PERLBREW_ROOT=/Users/ether/perl5/perlbrew
...contents of functions snipped...
David Golden

I've fixed the warning in the local::lib repo, but I'm not sure what perlbrew is doing to cause it, though.

Things seem to work, regardless of the warning, though.

Karen Etheridge
Kang-min Liu
Owner
gugod commented

I believe this issue was fixed in 4665340 , but it has been on and off from time to time. Apparently some combination of local::lib version can still trigger this warning.

djerius
djerius commented

I did some debugging on the warning a few weeks back:

https://rt.cpan.org/Public/Bug/Display.html?id=84621

Jonathan Perkin jperkin referenced this issue from a commit in joyent/pkgsrc
Update to 1.008010
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
5018ef8
Jonathan Perkin jperkin referenced this issue from a commit in joyent/pkgsrc
Update to 1.008010
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
7a81146
Jonathan Perkin jperkin referenced this issue from a commit in joyent/pkgsrc
Update to 1.008010
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
4ac9e19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.