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

I'm not able to install any modules in my machine. I used the command perl -MCPAN -e "install PDL" It throws an error message as
CPAN: Storable loaded ok (v2.18) Going to read C:\Perl\cpan\Metadata Database was generated on Thu, 17 Jul 2008 09:03:18 GMT CPAN: LWP::UserAgent loaded ok (v5.813) CPAN: Time::HiRes loaded ok (v1.9715) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz Going to read C:\Perl\cpan\sources\authors\01mailrc.txt.gz Can't call method "value" on an undefined value at C:\Perl\lib/IO/Unco +mpress/RawInflate.pm line 64.
I'm using Active state perl v5.10.0 in windows XP machine. I have also tried
cpan> install PDL
I get the same error

Replies are listed 'Best First'.
Re: Issue in RawInflate.pm
by syphilis (Archbishop) on Sep 09, 2008 at 12:15 UTC
    I used the command perl -MCPAN -e "install PDL"

    I can't supply a reason for the particular failure - I don't use CPAN.pm. However, there are 2 other alternatives for installing PDL on ActivePerl-5.10.0.

    Firstly, you could run ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/PDL.ppd

    Or, if you really want to build PDL from source, download the PDL-2.4.3 source from CPAN, extract it to some location, cd to that location, edit the file 'perldl.conf' to suit your needs, and run (in order) perl Makefile.PL, followed by make install.

    Note that you need to replace 'make' with either 'nmake' or 'dmake' (depending upon which flavour you are using), that you could optionally run make test before running make install, and that you'll need a working C compiler and 'make' utility for this second approach to work. The ppm approach I outlined is probably the best approach for you ... but I'm making assumptions, now :-)

    Cheers,
    Rob
      Reccomended make is from Config
      C:\>perl -V:make make='nmake';
        Reccomended make is from Config

        Actually it's a case of "Mandatory make is from Config". Tricky bit is that, with ActivePerl, you can set up things so that perl -V:make reports either 'nmake' or 'dmake' (it depends upon which, if any, flavour gets found - and you can alter that to suit yourself). However, it's imperative that you use whichever make it is that perl -V:make reports.

        Cheers,
        Rob
Re: Issue in RawInflate.pm
by Anonymous Monk on Sep 09, 2008 at 09:01 UTC
    I'm using Active state perl v5.10.0 in windows XP machine how can I over come this error
    What are you doing to get that error (elaborate on I'm trying to install CPAN module(PDL module))?
Re: Issue in RawInflate.pm
by Anonymous Monk on Sep 09, 2008 at 12:33 UTC