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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
perl2exe error



Apr 22, 2007, 3:01 AM

Post #1 of 1 (1435 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 '' at Perl2EXE_STORAGE/OLE/ line 13.
BEGIN failed--compliation aborted at PERL2EXE_Storage/OLE/Storage_Lite line 13.

BEGIN failed--compliation aborted at PERL2EXE_Storage/Spreadsheet/ 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.


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

 #! 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