Skip Menu |

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

Report information
The Basics
Id: 63004
Status: resolved
Priority: 0/
Queue: App-perlbrew

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

Bug Information
Severity: Normal
Broken in:
  • 0.11
  • 0.12
  • 0.13
Fixed in: (no value)



Subject: perlbrew now tries to install cpanm by default
I ran "perlbrew install -v perl-5.13.6" which ended with: make[1]: Leaving directory `/home/v-perlbrew/perl5/perlbrew/build/perl- 5.13.6' Only http is supported by HTTP::Lite at /home/v- perlbrew/perl5/perlbrew/perls/perl- 5.13.5/lib/site_perl/5.13.5/HTTP/Lite.pm line 147. Fail to get https://github.com/miyagawa/cpanminus/raw/master/cpanm (error: ) at /home/v-perlbrew/perl5/perlbrew/perls/perl- 5.13.5/lib/site_perl/5.13.5/App/perlbrew.pm line 619. The HTTPS thing looks to be fixed in Git. But why is it now installing third party packages which aren't Perl by default? I don't need CPANM and didn't request it. Shouldn't installing that be another installation target?
cpanm is auto-installed for it perfectly matches the scenario of using perlbrew. When you have multiple perls, you don't want to configure CPAN multiple times, and cpanm is the quickest solution because it's zero-conf. There is, indeed, a command that installs cpanm: perlbrew install-cpanm I might be a bit lazy and not really running install-cpanm in the right timing, it's currently run after `perlbrew install perl-x.x.x`. It looks like it's more proper not to do that every time a new perl is being installed, but to do that only when a new perlbrew is installed.
On 2010-11-16T19:32:12-05:00, GUGOD wrote: Show quoted text
> cpanm is auto-installed for it perfectly matches the scenario of using > perlbrew. When you have > multiple perls, you don't want to configure CPAN multiple times, and > cpanm is the quickest > solution because it's zero-conf. > > There is, indeed, a command that installs cpanm: > > perlbrew install-cpanm > > I might be a bit lazy and not really running install-cpanm in the > right timing, it's currently run > after `perlbrew install perl-x.x.x`. It looks like it's more proper > not to do that every time a new > perl is being installed, but to do that only when a new perlbrew is > installed.
Maybe it matches your scenaro of using perlbrew. But for someone using perlbrew e.g. to test if version X.Y.Z of the core supports a given program perlbrew is now broken. Because a program that e.g. uses LWP will now work after install, because perlbrew itself is automagically installing App::cpanm dependencies. Other users will also only use/install CPAN.pm or CPANPLUS.pm. In which case installing cpanminus is redundant. It would be really nice if it didn't do this by default. Or at least had an option to disable it: perlbrew install --no-automatic-installs perl-5.12
On Wed Nov 17 04:30:56 2010, AVAR wrote: Show quoted text
> Maybe it matches your scenaro of using perlbrew. > > But for someone using perlbrew e.g. to test if version X.Y.Z of the > core supports a given program perlbrew is now broken. Because a > program that e.g. uses LWP will now work after install, because > perlbrew itself is automagically installing App::cpanm dependencies. > > Other users will also only use/install CPAN.pm or CPANPLUS.pm. In > which case installing cpanminus is redundant. > > It would be really nice if it didn't do this by default. Or at least > had an option to disable it: > > perlbrew install --no-automatic-installs perl-5.12
The cpanm executable installed with perlbrew is a self-contained one, with no non-core module dependencies: https://github.com/miyagawa/cpanminus/raw/master/cpanm perlbrew does not install App::cpanminus module at all. It merely just grab (with curl/wget) cpanm from that URL and placed it inside $PERLBREW_ROOT/bin.
close this issue for perlbrew does no auto install cpanm.