Subject: | enc2xs may not be found on MSWIN32 |
Date: | Fri, 4 Dec 2015 11:28:28 +0100 |
To: | bug-Encode-JIS2K [...] rt.cpan.org |
From: | No <subjut [...] gmail.com> |
I cannot build the module under Windows (specifically, I have perl
v5.22.0 built for MSWin32-x64-multi-thread). I get the error "enc2xs not
found! at Makefile.PL line 35". It is similar to bug
https://rt.cpan.org/Public/Bug/Display.html?id=108270, but for a
different reason.
Lines 34-35 in the makefile check for an executable enc2xs:
$enc2xs = $enc2xs_fpath
if (-x $enc2xs_fpath);
Under Windows, the file 'enc2xs' is not executable, so the assignment to
$enc2xs fails. Under Windows the code should also check for
'enc2xs.bat', along the lines (tested and working)
$enc2xs = $enc2xs_fpath
if (-x $enc2xs_fpath || -x "$enc2xs_fpath.bat");
(On a side note, $enc2xs should not contain the .bat extention, because
then the make stage will fail).