At 14:06 -0600 02.03.2001, Ken Williams wrote:
>Hi,
>
>I'm trying to upgrade my Getopt::Long module from 1.04 (MacPerl default)
>to at least 2.17, in an effort to get DBI::Shell working.
>
>When attempting to install Getopt::Long (either using CPAN shell or
>installme.plx) I get the following error, which I don't understand:
>
> ===================================================
> Unpacking archive ...
> Converting files ...
> LF->CR translate :Getopt-Long-2.25:examples:skel.pl
> LF->CR translate :Getopt-Long-2.25:examples:skel2.pl
> LF->CR translate :Getopt-Long-2.25:lib:newgetopt.pl
> LF->CR translate :Getopt-Long-2.25:lib:Getopt:Long.pm
> LF->CR translate :Getopt-Long-2.25:README
> LF->CR translate :Getopt-Long-2.25:CHANGES
> LF->CR translate :Getopt-Long-2.25:MANIFEST
> LF->CR translate :Getopt-Long-2.25:t:gol-basic.t
> LF->CR translate :Getopt-Long-2.25:t:gol-linkage.t
> LF->CR translate :Getopt-Long-2.25:t:gol-compat.t
> LF->CR translate :Getopt-Long-2.25:t:gol-oo.t
> LF->CR translate :Getopt-Long-2.25:INSTALL
> LF->CR translate :Getopt-Long-2.25:Makefile.PL
> LF->CR translate :Getopt-Long-2.25:Announce
> # Can't do :Makefile.PL in Burro:Downloads:Getopt-Long-2.25
> # No Burro:Downloads:Getopt-Long-2.25 package data.
> File 'Burro:Applications:Computer:MacPerl Ÿ:site_perl:ExtUtils:MM_MacOS.pm';
> Line 910
> ===================================================
>
>Anyone know how to get around this? Didn't find anything relevant on
>CPAN-testers, MacPerl-porters page, or the archives of this list.
I see this in the Makefile.PL:
require "./lib/Getopt/Long.pm";
Changing it to this works:
require "lib/Getopt/Long.pm";
I am not sure what the best solution is. He could also try:
use File::Spec;
sub fixpath { File::Spec->catfile(File::Spec->curdir, @_) }
require(fixpath(qw(lib Getopt Long.pm)));
And then:
PM => { fixpath(qw[lib newgetopt.pl]),
fixpath(qw[$(INST_LIB) newgetopt.pl]),
fixpath(qw[lib Getopt Long.pm]),
fixpath(qw[$(INST_LIB) Getopt Long.pm]),
},
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/