Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 22627
Status: resolved
Priority: 0/
Queue: CPANPLUS

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

Bug Information
Severity: Important
Broken in: 0.77_02
Fixed in: (no value)



Subject: nonexistant "perlwrapper" requested by CPANPLUS::Dist::MM - install of v6.pm fails
CPANPLUS-0.77_02 has already installed itself successfully (including that CPANPLUS::Dist::MM was installed), afaik, under my Perl 5.8.8 on Mac OS X 10.4.8. On trying to actually use CPANPLUS to install v6.pm, CPANPLUS::Dist::MM seems to want to use some executable called "perlwrapper", but there is no indication as to what that is or why it is important. It asserts this desire in a loop that also checks for 'make'. There is no mention of "perlwrapper" in the v6 distro, but just in CPANPLUS, suggesting the problem is on CPANPLUS' end. A quick Google search for "perlwrapper" gave ambiguous results. Here's the brief terminal log showing the experience (the CPANPLUS log it mentions shows that the following errors came just after the 'Extracted' lines of v6-alpha-0.015): --------- darren-duncans-power-mac-g4:/Volumes/Programming160 darrenduncan$ /Volumes/ Programming160/cpanp -i v6 -bash: /Volumes/Programming160/cpanp: No such file or directory darren-duncans-power-mac-g4:/Volumes/Programming160 darrenduncan$ /Volumes/ Programming160/cpanp6 -i v6 Installing v6 [ERROR] You do not have 'perlwrapper'in your path -- 'CPANPLUS::Dist::MM' not available [ERROR] Format 'CPANPLUS::Dist::MM' is not available [ERROR] Unable to create a new distribution object for 'v6' -- cannot continue *** Install log written to: /Users/darrenduncan/.cpanplus/install-logs/v6-1161904895.log Error installing 'v6' Problem installing one or more modules ---------
On Thu Oct 26 20:03:40 2006, DUNCAND wrote: Show quoted text
> CPANPLUS-0.77_02 has already installed itself successfully (including > that CPANPLUS::Dist::MM was installed), afaik, under my Perl 5.8.8 on Mac > OS X 10.4.8. > > On trying to actually use CPANPLUS to install v6.pm, > CPANPLUS::Dist::MM seems to want to > use some executable called "perlwrapper", but there is no indication > as to what that is or why > it is important.
perlwrapper is the config name for a script cpanplus provides to run sub commands with buffering turned off, so interactive Makefile.PL's and so on will work. If you install CPANPLUS using 'make install' in the standard location, the perlwrapper script (called cpanp- run-perl on your disk) will be installed in your path. My best guess of what happened to you is that you installed CPANPLUS with a custom prefix, ie you did 'perl Makefile.PL PREFIX=/path/to/install/cpanplus' I've added heuristics for this in the Config.pm's autoprobing, so it will find cpanp-run-perl as well if you gave a custom prefix. I've also let it fall back to '-P' option to perl, which is effectively a no-op. Worst case, your Makefile.PL's wont be properly interactive, but it won't "just" break anymore. I've also improved the error text generated, which now reads: [ERROR] You do not have 'perlwrapper' in your path -- 'CPANPLUS::Dist::MM' not available Please check your config entry for 'perlwrapper' These fixes will be in 0.77_03, which i encourage you to try. In the meantime, simply do the following in the default shell: s program perlwrapper /path/to/cpanp-run-perl s save and you should be able to install modules as usual. Thanks for reporting, -- Jos