Apr 22, 2007, 3:01 AM
Post #1 of 1
I frequently use perl2exe to create perl-based executables that I can use at work
without having to install Perl on every workstation. I've encountered the following error
which doesn't make much sense to me and was hoping someone here might have
encountered something similar.
I'm using Spreadsheet::ParseExcel module to parse spreadsheet data. Perl2exe
creates the executable with no errors but I run into the following error when
I run the exe file:
"Couldn't load any math lib, not even 'Calc.pm' at Perl2EXE_STORAGE/OLE/STORAGE_LITE.pm line 13.
BEGIN failed--compliation aborted at PERL2EXE_Storage/OLE/Storage_Lite line 13.
BEGIN failed--compliation aborted at PERL2EXE_Storage/Spreadsheet/ParseData.pm line 176"
Line 13 of Storage_Lite is simply:
This module has been installed with PPM. However even the simple script
below will not work with Perl2exe.
Has anyone ever come across this problem before or have any potential solutions?
I think the problem is with Math:BigInt. Even the simple program below fails when
converting with Perl2exe and gives me the exact same error when I try to run the executable.
The executable is created but it displays the same error as above sans the message about
ParseExcel. When use Math::BigInt is replaced with require Math::BigInt; the resulting executable
is ok. This does not work when the Storage_Lite reference is changed to require Math::BigInt.
Any help you can shed would be appreciated.
Simple code example that will not run after executable created with perl2exe
print "okfine"; #end code
(This post was edited by philc on Apr 22, 2007, 10:07 AM)