CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
perl2exe error

 



philc
Novice

Apr 22, 2007, 3:01 AM

Post #1 of 1 (1419 views)
perl2exe error Can't Post

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:

use Math::BigInt;

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.

philc




Simple code example that will not run after executable created with perl2exe


Code
 #! perl-w 
use strict;
use warnings;
use Math::BigInt;
print "okfine"; #end code



(This post was edited by philc on Apr 22, 2007, 10:07 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives