Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: JadeNB1729 [...] yahoo.com
Cc:
AdminCc:

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



Subject: Cannot use Pod::Usage
I'm sure there are other modules affected by this, but Pod::Usage is the one that bit me. I just installed Perl 5.13.3 with perlbrew on Mac OS 10.5.8, then had a support program (I no longer remember which one—MacPorts, maybe?) call Pod::Usage. Unfortunately, it contains the following line: Show quoted text
> my $progpath = File::Spec->catfile($Config{scriptdir}, 'perldoc');
(It's on line 57 in version 1.36; but that's the one on my current computer, not the one on which I used perlbrew, and it may be outdated.) Unlike the binaries, which are symlinked in $PERLBREW_ROOT/bin, the libraries stay underneath the hierarchy of the specific Perl to which they are attached; so, when Pod::Usage is trying to execute perldoc, it's actually looking in a directory, $PERLBREW_ROOT/perls/perl-5.13.3, that contains instead perldoc5.13.3.
This was resolved after we ensure that 'perlbrew' exectuable itself is never exectued by a "perl" managed by perlbrew, but by a system perl (usually /usr/bin/perl)