Dear Monks,

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"; } }

In reply to Installed CPAN modules misdirected by tall_man

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.