Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Can't locate Win32/DirSize.pm in @INC

by gepebril69 (Scribe)
on Nov 07, 2015 at 09:49 UTC ( [id://1147182]=perlquestion: print w/replies, xml ) Need Help??

gepebril69 has asked for the wisdom of the Perl Monks concerning the following question:

Hi there

When I try to run a run a sample srcript with Win32:Dirsize call I get the error: Can't locate Win32/DirSize.pm in @INC

I use: Windows 2008- 64 bits and Perl 5.20.1.1-32bit

I did run cmd as administrator and used the commands

cpan install Win32::DirSize
Output:
cpan> install Win32::DirSize.pm Running install for module 'Win32::DirSize' ARICH/Win32-DirSize-1.13.tar.gz Has already been unwrapped into directory C:\STRAWB~1\cpan\build\Win +32-DirSize-1.13-UTo9oV ARICH/Win32-DirSize-1.13.tar.gz Has already been prepared ARICH/Win32-DirSize-1.13.tar.gz Has already been made ARICH/Win32-DirSize-1.13.tar.gz Has already been tested successfully ARICH/Win32-DirSize-1.13.tar.gz Already done

Code used

use strict; use Win32::DirSize; my $Result = dir_size( "C:\\TEMP", my $DirInfo, # this stores the directory information );
What seems to be the problem?

Replies are listed 'Best First'.
Re: Can't locate Win32/DirSize.pm in @INC
by ww (Archbishop) on Nov 07, 2015 at 12:17 UTC

    Outstanding bugs exist:

    93796 incorrect directory structure new Important 2 years ago 1.1 +3 58302 #57853 open 5 years ago

    Local test: different issues, but likewise fails under

    Win32, SP1, 32bit; AS Perl:  perl 5, version 18, subversion 4
    cpan> install Win32::DirSize Reading 'C:\Perl\cpan\Metadata' Database was generated on Mon, 07 Sep 2015 05:29:02 GMT Reading 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz Reading 'C:\Perl\cpan\sources\modules\02packages.details.txt.gz' Database was generated on Fri, 06 Nov 2015 06:41:02 GMT ...................................................................... +......DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/03modlist.data.gz Reading 'C:\Perl\cpan\sources\modules\03modlist.data.gz' DONE Writing C:\Perl\cpan\Metadata Running install for module 'Win32::DirSize' Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/A/AR/ARICH/Win32-DirSize-1. +13.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/A/AR/ARICH/CHECKSUMS Checksum for C:\Perl\cpan\sources\authors\id\A\AR\ARICH\Win32-DirSize- +1.13.tar.gz ok Scanning cache C:\Perl/cpan/build for sizes ...................................................................... +......DONE Win32-DirSize-1.13/ Win32-DirSize-1.13/Win32/ Win32-DirSize-1.13/Win32/DirSize/ Win32-DirSize-1.13/Win32/DirSize/Changes Win32-DirSize-1.13/Win32/DirSize/DirSize.pm Win32-DirSize-1.13/Win32/DirSize/DirSize.xs Win32-DirSize-1.13/Win32/DirSize/Makefile.PL Win32-DirSize-1.13/Win32/DirSize/MANIFEST Win32-DirSize-1.13/Win32/DirSize/ppm.zip Win32-DirSize-1.13/Win32/DirSize/README Win32-DirSize-1.13/Win32/DirSize/tconvert.h Win32-DirSize-1.13/Win32/DirSize/test.pl Package seems to come without Makefile.PL. (The test -f "C:\Perl\cpan\build\Win32-DirSize-1.13-LmIIqK\Makefile. +PL" returned false.) Writing one on our own (setting NAME to Win32DirSize) Configuring A/AR/ARICH/Win32-DirSize-1.13.tar.gz with Makefile.PL Generating a dmake-style Makefile Writing Makefile for Win32DirSize Writing MYMETA.yml and MYMETA.json ARICH/Win32-DirSize-1.13.tar.gz C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK Running make for A/AR/ARICH/Win32-DirSize-1.13.tar.gz ARICH/Win32-DirSize-1.13.tar.gz C:\Perl\site\bin\dmake.exe -- OK Running make test 'No tests defined for Win32DirSize extension.' ARICH/Win32-DirSize-1.13.tar.gz C:\Perl\site\bin\dmake.exe test -- OK Running make install Prepending C:\Perl\cpan\build\Win32-DirSize-1.13-LmIIqK/blib/arch C:\P +erl\cpan\build\Win32-DirSize-1.13-LmIIqK/blib/lib to PERL5LIB for 'in +stall' Appending installation info to C:\Perl\lib/perllocal.pod ARICH/Win32-DirSize-1.13.tar.gz C:\Perl\site\bin\dmake.exe install -- OK ... C:\>test_DirSize.pl # your code Can't locate Win32/DirSize.pm in @INC (you may need to install the Win +32::DirSize module) (@INC contains: C:/Perl/site/lib C:/Perl/lib .) a +t D:\_Perl_\pl_test\test_DirSize.pl line 2.

    ++$anecdote ne $data

      Thanks very muck

      Has stopped working long time ago, since Perl 1.10 :( Will look for an alternative

        Will look for an alternative

        Take a look at folder size

        poj

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1147182]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found