Hi Monks. I cannot figure out how to package a program that uses XML::LibXML. I am using strawberry perl on windows. I convert the perl program to exe:

Make exe like this:

pp -I lib -l c:\strawberry\c\bin\zlib1__.dll -l c:\strawberry\c\bin\li +bxml2-2__.dll -l c:\strawberry\c\bin\libiconv-2__.dll -x --xargs=pp - +I ..\source ..\source\testxx.pl -o ..\bin\testxx.exe

When I run on the system that generated the exe (with strawberry perl installed) it runs OK.

Running on another system (that doesn't have perl installed) produces this error:

Can't load 'C:\Users\USER~1\AppData\Local\Temp\par-5741444d436f7474657 +244616e\cache-f5208665237b7d0dd36c5b6942120a85a57da865\7c34139c.xs.dl +l' for module XML::LibXML: load_file:The specified module could not b +e found at <embedded>/DynaLoader.pm line 193. at <embedded>/PAR/Heavy.pm line 140. BEGIN failed--compilation aborted at C:\Users\USER~1\AppData\Local\Tem +p\par-5741444d436f7474657244616e\cache-f5208665237b7d0dd36c5b6942120a +85a57da865\inc\lib/XML/LibXML.pm line 156. Compilation failed in require at C:\Users\USER~1\AppData\Local\Temp\pa +r-5741444d436f7474657244616e\cache-f5208665237b7d0dd36c5b6942120a85a5 +7da865\inc\lib/testx.pm line 14. BEGIN failed--compilation aborted at C:\Users\USER~1\AppData\Local\Tem +p\par-5741444d436f7474657244616e\cache-f5208665237b7d0dd36c5b6942120a +85a57da865\inc\lib/testx.pm line 14. Compilation failed in require at script/testxx.pl line 10. BEGIN failed--compilation aborted at script/testxx.pl line 10.

My guess is I need to include something...xs.dll. I notice by searching there are a lot of *.xs.dll files in strawberry perl sub folders. How do I know what I need to include? Is there any way to list all the DLL's that get loaded when I run the script normally, so I can have them linked to pp?

Thanks for any help! Have been stuck on this for a quite a while!


In reply to XML::LibXML with pp on windows by sectokia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.