tall_man has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to figure out how I got caught by a strange module install issue and how to prevent it in the future. About a year ago I installed module Test::SDK (which doesn't seem to be around any more).
Tue Nov 27 11:31:59 2001: "Module" Test · "installed into: /usr/lib/perl5/5.6.1" · "LINKTYPE: dynamic" · "VERSION: 1.18" · "EXE_FILES: " Tue Nov 27 11:32:07 2001: "Module" Test::SDK · "installed into: /usr/lib/perl5/5.6.1" · "LINKTYPE: dynamic" · "VERSION: 0.04" · "EXE_FILES: "
The Test::SDK bundle included Test-Simple-0.19. Today, I tried to upgrade to Test-Simple-0.47.
Thu Dec 5 13:17:35 2002: "Module" Test::Simple · "installed into: /usr/lib/perl5/site_perl/5.6.1" · "LINKTYPE: dynamic" · "VERSION: 0.47" · "EXE_FILES: "
This install went to /usr/lib/perl5/site_perl/5.6.1, instead of to /usr/lib/perl5/5.6.1. Since the latter is earlier on my @INC path, the upgrade didn't work until I deleted the earlier modules.
My question is, what can I do to prevent being caught when CPAN moves modules around like this? I have a little script I used to find the problem once I realized it, which might be a starting point.
use strict; if ($#ARGV < 0) { die "Usage: which.pl fname\n"; } my $fname = $ARGV[0]; my $dir; foreach $dir (@INC) { print "Checking $dir\n"; if (-e "$dir/$fname") { print "Found $dir/$fname\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installed CPAN modules misdirected
by tall_man (Parson) on Dec 05, 2002 at 21:28 UTC | |
|
Re: Installed CPAN modules misdirected
by grantm (Parson) on Dec 05, 2002 at 23:10 UTC | |
|
Re: Installed CPAN modules misdirected
by strider corinth (Friar) on Dec 06, 2002 at 18:34 UTC |