Hello kindly Perl votaries. I installed Strawberry Perl Portable edition to a USB drive yesterday, and today I began using it. I tried to install a CPAN module I used in the course of trying to create a CUFP (Almost cool: removable drive "finder" instead of windows autoplay). The module is Win32::DriveInfo. I had installed that module a few days ago under CygwinPerl and the installation went fine. Today when I tried to use my newly configured CPAN.pm under portable Strawberry, I got the oddest failures. Here's what my console showed me:

cpan[8]> install Win32::DriveInfo Running install for module 'Win32::DriveInfo' Fetching with HTTP::Tiny: https://cpan.org/authors/id/M/MB/MBLAZ/Win32-DriveInfo-0.06.tar.gz CPAN: Digest::SHA loaded ok (v6.04) Fetching with HTTP::Tiny: https://cpan.org/authors/id/M/MB/MBLAZ/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.213) Checksum for C:\Users\somia\AppData\strawberry-perl-sourcecache\author +s\id\M\MB\MBLAZ\Win32-DriveInfo-0.06.tar.gz ok 'C:' is not recognized as an internal or external command, operable program or batch file. Uncompressed C:\Users\somia\AppData\strawberry-perl-sourcecache\author +s\id\M\MB\MBLAZ\Win32-DriveInfo-0.06.tar.gz successfully Using Tar:C:/ix/cygwin/bin/tar.exe xvf "Win32-DriveInfo-0.06.tar": Win32-DriveInfo-0.06/ Win32-DriveInfo-0.06/Makefile.PL Win32-DriveInfo-0.06/DriveInfo.pm Win32-DriveInfo-0.06/Changes Win32-DriveInfo-0.06/test.pl Win32-DriveInfo-0.06/README Win32-DriveInfo-0.06/MANIFEST Untarred Win32-DriveInfo-0.06.tar successfully CPAN: CPAN::Meta::Requirements loaded ok (v2.143) CPAN: CPAN::Meta loaded ok (v2.150010) Package contains both files[Win32-DriveInfo-0.06.tar] and directories[ +Win32-DriveInfo-0.06]; not recognized as a perl package, giving up Configuring M/MB/MBLAZ/Win32-DriveInfo-0.06.tar.gz with Makefile.PL Running make for M/MB/MBLAZ/Win32-DriveInfo-0.06.tar.gz make: *** No targets specified and no makefile found. Stop. MBLAZ/Win32-DriveInfo-0.06.tar.gz C:/ix/cygwin/bin/make.exe -- NOT OK Stopping: 'install' failed for 'Win32::DriveInfo'.

The same fatal error took place just now when I tried to build/install Win32::Env. Does anyone have any idea why I'd see this failure?

Jun 03, 2025 at 18:32 UTC

In reply to It's Tuesday, so it must be the day for Trouble With Cpan by Intrepid

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.