Subject: | CPAN's failure building Spreadsheet::Perl on Win32 (with solution) |
Date: | Fri, 14 Aug 2009 22:03:26 +0200 |
To: | bug-Spreadsheet-Perl [...] rt.cpan.org |
From: | Pawel Suchanecki <subdcc [...] gmail.com> |
Distribution name and version: Spreadsheet-Perl-0.08
Perl version: This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(both ActiveState na Strawberry)
Operating System vendor and version: Microsoft Windows XP SP2 PRO
PROBLEM: The Spreadsheet::Perl module build fails under cpan (shell)
with unmet dependency error on Term::Size.
The problem comes out of the fact, that on Windows platform,
Term::Size is superseded by Term::Size::Win32.
Quick'n'dirty solution:
-------------------------------
#Install prerequisite on Windows platform, the Win32 version of Term::Size;
0) cpan> install Term::Size::Win32
# try to install the module -- fails on missingdependency
1)cpan> install Spreadsheet::Perl
# now change to the build directory for Spreadsheet-Perl
(something similar to: C:\strawberry\cpan\build\Spreadsheet-Perl-0.08-ij6lqZ)
2) cd C:\strawberry\cpan\build\Spreadsheet-Perl-0.08-ij6lqZ (or
c:\strawb~1\cpan\\build\Spread~1)
3) modify Makefile.pm -- change "Term::Size" on "Term::Size::Win32"
(or remove the line containing it)
4) modify META.yml -- change "Term::Size" on "Term::Size::Win32" (or
remove the line containing it)
5) Perl/ASCIITable.pm -- replace "Term::Size" with "Term::Size:Win32",
twice (line 140 and 144)
#forcing install of Spreadsheet::Perl
6) cpan> force install Spreadsheet::Perl
# now the module is ready to use!