For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > April 2007 > Could not find ParserDetails.ini...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Could not find ParserDetails.ini...
Devon_Dan

2007-04-26, 7:03 pm

Hello.

I am having a bit of a problem using Perl2exe and was wondering if
anyone can throw some light on how to resolve it.

My script runs perfectly from the command line so I know it works.
However when I try perl2exe myscript.pl I get the following

Warning: Can't locate VMS/Stdio.pm
at D:\Perl\lib\File\Temp line 139
@INC D:\Perl\lib , d:\Perl\Site

>From what I can see, the VMS::Stdio warning is only used on the VMS

platform and can be safely ignored. The .exe is still created but when
it is run, half way through execution I get this

could not find ParserDetails.ini in PERL_STORAGE/XML/SAX
can't locate object method 'new' via XML::SAX::PurePerl at
PERL_STORAGE/XML/SAX/ParserFactory.pm line 43

A bit of hunting turned up this http://johnbokma.com/perl/installing-xml-sax.html
but having tried both fixes, the problem persists. Has anyone had this
problem before? Perhaps I am missing something blindingly obvious?

Thanks for your time

Dan

Sisyphus

2007-04-27, 8:02 am


"Devon_Dan" <dp_pearce@hotmail.com> wrote in message
news:1177593419.267574.299460@t39g2000prd.googlegroups.com...
> Hello.
>
> I am having a bit of a problem using Perl2exe and was wondering if
> anyone can throw some light on how to resolve it.


"Perl2exe" is the IndigoStar utility ... right ?
If so, it might be best to ask on a forum that deals with that utility
(assuming such exists).
If, otoh, "Perl2exe" is the ActiveState utility that ships with their PDK,
then you'd be best to ask about it on their PDK mailing list
(http://listserv.activestate.com/mailman/mysubs ) .

>
> My script runs perfectly from the command line so I know it works.
> However when I try perl2exe myscript.pl I get the following
>
> Warning: Can't locate VMS/Stdio.pm
> at D:\Perl\lib\File\Temp line 139
> @INC D:\Perl\lib , d:\Perl\Site
>
> platform and can be safely ignored.


Seems likely to me, too :-)

> The .exe is still created but when
> it is run, half way through execution I get this
>
> could not find ParserDetails.ini in PERL_STORAGE/XML/SAX
> can't locate object method 'new' via XML::SAX::PurePerl at
> PERL_STORAGE/XML/SAX/ParserFactory.pm line 43
>
> A bit of hunting turned up this
> http://johnbokma.com/perl/installing-xml-sax.html
> but having tried both fixes, the problem persists. Has anyone had this
> problem before? Perhaps I am missing something blindingly obvious?
>


John's advice is usually sound. Does following his advice lead to the
creation of ParserDetails.ini ?
If so, did you then re-build the executable ? Did the problem then persist ?
If so, then perhaps perl2exe is failing to pack it into the executable. If
so, then perhaps you could package it, yourself, along with the
perl2exe-built executable. (I'm thinking that if ParserDetails.ini was to be
found in the same folder as the perl2exe-built executable, then things might
work .... but I have *no* idea whether it's *really* as simple as that :-)

Have you tried the freely available PAR (with its pp utility) from CPAN ?
There's certainly good advice available regarding it on the PAR mailing list
( http://lists.cpan.org/ ).

Cheers,
Rob

Devon_Dan

2007-04-27, 7:02 pm

Hi Rob,

Thanks for taking the time to respond. Its greatly appreciated.

> "Perl2exe" is the IndigoStar utility ... right ? If so, it might be best to ask on a forum that deals with that utility (assuming such exists).


There doesn't seem to be one. Most of the Perl2exe questions I can
find are here.

> Does following his advice lead to the creation of ParserDetails.ini?


Yes it does, in D:\Perl\site\lib\XML\SAX but having recompiled the
exe, there I still get the same warning

could not find ParserDetails.ini in PERL_STORAGE/XML/SAX
can't locate object method 'new' via XML::SAX::PurePerl at
PERL_STORAGE/XML/SAX/ParserFactory.pm line 43

> If so, then perhaps you could package it yourself


Shall give it a go, and PAR. Thanks for the advice

Dan

Adhaup2

2007-04-29, 10:31 am

http://Britney-Spears-jerking.info/...hp?movie=148803
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com