Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

perl2exe Error

by chennaiite (Sexton)
on Nov 19, 2009 at 11:41 UTC ( #808132=perlquestion: print w/replies, xml ) Need Help??
chennaiite has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

I am using below modules for my XML comparison.

use XML::SemanticDiff; use XML::SemanticCompare; use XML::LibXML;

I installed those modules and could be able to finish my coding. It worked fine.

I started converting the script into exe using perl2exe. It was successful but when I try to run the exe, I am getting the belwo error message,

Could not find ParserDetails.ini in PERL2EXE_STORAGE/XML/SAX Can't use string ("1") as a HASH ref while "strict refs" in use at PER +L2EXE_STORAGE/XML/ line 147, <ACOUT> line 69.

Also I did include the modules(Ex. #perl2exe_include "XML/";) inside my perl script but no success. could you please help how to fix this issue?

Your help would be greatly appreciated.



Replies are listed 'Best First'.
Re: perl2exe Error
by keszler (Priest) on Nov 19, 2009 at 11:57 UTC
    You need to add
    #perl2exe_bundle "/some/path/ParserDetails.ini"
    to the file on which you are running perl2exe.

    Search your @INC directories for that .ini file, then use the full path in the perl2exe_bundle line. That directive tells perl2exe to include the file in the .exe being created so that it is available to the program when the .exe is executed.

      Hi, I tried those steps, but No success.

      Is there any other way(any free software) to convert my perl script to exe?


        Take a look at pp.

Re: perl2exe Error
by regexes (Hermit) on Nov 19, 2009 at 11:52 UTC

    Quick guess... since you mentioned ParserDetails.ini it seems to be an additional file which you need. This is not the same as including the module.

    Try looking at perl2exe_bundle filename from the Perl2Exe documentation.

Re: perl2exe Error
by Anonymous Monk on Feb 01, 2016 at 16:45 UTC
    Hello, I solved the issue.

    When perl2exe gives you an error like this where it can't find a file, it is actually listing the directory it expects to find it in.


    So from where ever the .exe file executes, it requires a sub-directory named "PERL2EXE_STORAGE". In that directory, add the next two sub directories, XML and SAX inside of XML.

    Then after you find the ParserDetails.ini file inside of the XML/SAX/ you move a copy to that new directory you created. - TRL

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://808132]
Approved by almut
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-09-20 04:36 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (230 votes). Check out past polls.