Skip Menu |

This queue is for tickets about the local-lib CPAN distribution.

Report information
The Basics
Id: 93830
Status: resolved
Priority: 0/
Queue: local-lib

People
Owner: Nobody in particular
Requestors: doran [...] uta.edu
Cc:
AdminCc:

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



Subject: local lib bootstrap install error?
Date: Thu, 13 Mar 2014 10:50:02 -0500
To: "bug-local-lib [...] rt.cpan.org" <bug-local-lib [...] rt.cpan.org>
From: "Doran, Michael D" <doran [...] uta.edu>
local-lib-2.000007 perl v5.12.4 linux: CentOS release 5.5 I was trying to follow the bootstrap install instructions for local lib. When I run this command: perl Makefile.PL --bootstrap I get this error: Unknown import argument: --bootstrap at lib/local/lib.pm line 61. Makefile.PL is apparently setting the $path variable to "--bootstrap" in this code (lines 100 & 101 of Makefile.PL): if (my ($x) = grep { /^--bootstrap(?:=.*)?$/ } @ARGV) { (my $path = $x) =~ s/^.*?=//; ...and passing that to local::lib. I can verify that by adding this debug print line to Makefile.PL just before the local::lib import: print "path is $path" . "\n"; local::lib->import($path || ()); When I set an explicit path with this command: perl Makefile.PL --bootstrap=~/perl5 Everything works fine. I used this code to illustrate the behavior (uncommenting to see the different results): #!/usr/bin/perl use strict; my @ARGV = ('--bootstrap=~/whatever'); #my @ARGV = ('--bootstrap'); if (my ($x) = grep { /^--bootstrap(?:=.*)?$/ } @ARGV) { (my $path = $x) =~ s/^.*?=//; print "path is $path" . "\n"; } -- Michael # Michael Doran, Systems Librarian # University of Texas at Arlington # 817-272-5326 office # 817-688-1926 mobile # doran@uta.edu # http://rocky.uta.edu/doran/
Thanks for the report. I've just released a fix for this.