Skip Menu |
 

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 73392
Status: open
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: wonko [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.36
Fixed in: (no value)



Subject: Switch can't find newly create lib
Download (untitled) / with headers
text/plain 619b
I'm trying out the lib feature of perlbrew but can't seem to get perlbrew to actually use it. ]$ perlbrew --version /home/mpeters/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.36 ]$ perlbrew lib create clean lib 'perl-5.8.8@clean' is created. ]$ perlbrew list perl-5.10.0 perl-5.10.1 perl-5.12.0 perl-5.12.1 perl-5.12.3 perl-5.12.4 perl-5.14.0 perl-5.14.1 perl-5.14.2 perl-5.15.0 perl-5.6.2 * perl-5.8.8 perl-5.8.8@clean perl-5.8.9 ]$ perlbrew switch perl-5.8.8@clean perl-5.8.8@clean is not installed So it's clearly added because list picks it up, but neither switch nor use can find it.
Download (untitled) / with headers
text/plain 357b
Huh. Apparently I just hit this on OS X 10.6.8? $ perlbrew version /opt/perl/bin/perlbrew - App::perlbrew/0.45 $ perlbrew lib create foo lib 'perl-5.16.0@foo' is created. $ perlbrew list * perl-5.16.0 perl-5.16.0@foo $ perlbrew use 'perl-5.16.0@foo' perl-5.16.0@foo is not installed $ perlbrew switch 'perl-5.16.0@foo' perl-5.16.0@foo is not installed
Download (untitled) / with headers
text/plain 913b
This is an attempt at a patch: --- App/perlbrew.pm 2012-07-15 20:10:19.729248817 -0500 +++ App/perlbrew.pm.bpm 2012-07-15 19:50:55.248120898 -0500 @@ -1111,6 +1111,8 @@ @env{keys %deactivate_env} = values %deactivate_env; } + my $orig_base = "$PERLBREW_HOME/libs/${perl_name}"; + my $base = "$PERLBREW_HOME/libs/${perl_name}\@${lib_name}"; if (-d $base) { @@ -1125,6 +1127,14 @@ $env{PERL_MB_OPT} = $lib_env{PERL_MB_OPT}; $env{PERL5LIB} = $lib_env{PERL5LIB}; $env{PERL_LOCAL_LIB_ROOT} = $lib_env{PERL_LOCAL_LIB_ROOT}; + + my %base_env = local::lib->build_environment_vars_for($orig_base, 0, 1); + + if ($env{PERL5LIB}) { + $env{PERL5LIB} .= ":$base_env{PERL5LIB}"; + } else { + $env{PERL5LIB} = $base_env{PERL5LIB}; + } } } else {
On Sun Jul 15 21:22:14 2012, BPMEDLEY wrote: Please disregard, I was using things incorrectly.
Download (untitled) / with headers
text/plain 238b
Aha!! It appears that some ancient perlbrew install(s) were confusing the hell out of ... something. I nuked all old perlbrews with extreme prejudice, installed a single clean one at ~/perl5/perlbrew, and everything looks great now. :D
Download (untitled) / with headers
text/plain 238b
On Sun Jul 15 22:46:23 2012, BPMEDLEY wrote: Show quoted text
> On Sun Jul 15 21:22:14 2012, BPMEDLEY wrote: > > Please disregard, I was using things incorrectly.
Why would you say that ? The steps you provided earlier looks OK and it should've worked.
Download (untitled) / with headers
text/plain 226b
On Tue Jul 17 01:12:41 2012, GUGOD wrote: Show quoted text
> > Please disregard, I was using things incorrectly.
> Why would you say that ? The steps you provided earlier looks OK and > it should've worked.
s/you provided/JHANNAH provided/;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.