http://www.perlmonks.org?node_id=1014790

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

Dear Monks,

Sorry if this is very basic, but cpan did the hard work for me until now...

Could not untar with Archive::Tar. Had problems unarchiving. Please build manually Running make test Make had some problems, won't test Running make install Make had some problems, won't install Stopping: 'install' failed for 'Net::SMTP::Server'. Failed during this command: MACGYVER/SMTP-Server-.1.tar.gz + : unwrapped NO -- untar failed
Simple right?
To manually install a Perl module: 1. Download the Perl module from CPAN or other site. 2. Extract the tarball. 3. Run perl Makefile.PL 4. Run make 5. Run make test 6. Run make install
Okayyyyy, I notice C:\strawberry\cpan\sources\authors\id\M\MA\MACGYVER is where the tarball is.

Previously failed builds appear to be in C:\strawberry\cpan\build\

Whereas properly installed contributed modules, such as XLSX::Writer are in:C:\strawberry\perl\site\lib\Spreadsheet\XLSX

Unlike standard ones which are in C:\strawberry\perl\lib

My question: do I just unpack/extrat "anywhere" on the drive and run the Makefile.PL etc.. command?

Very sorry if this is extremely basic.

Thanks and best regards.

UPDATE: Thanks to VinsWorldcom for pointing out dmake and not make has to be used (Windows).

Point noted Khen1950fx about the memory issue, it did not have an impact in my case. I manually extracted with 7zip and the build process went like a breeze!

Replies are listed 'Best First'.
Re: Where do you actually extract a tarball? Strawberry
by VinsWorldcom (Prior) on Jan 22, 2013 at 21:27 UTC

    Yes, if you want to download the MODULE.tar.gz file directly from CPAN you can 'gunzip' and 'tar xf' where ever you like on the drive. From where ever that directory is, just do the incantation:

    perl Makefile.PL dmake dmake test dmake install
Re: Where do you actually extract a tarball? Strawberry
by Khen1950fx (Canon) on Jan 22, 2013 at 23:47 UTC
    I multitask constantly, and I usually forget about it until I run out of RAM and the computer starts swapping. That's when I experience the "couldn't untar" syndrome. FWIW, try rebooting, then try cpan without running any other programs.