Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-16 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found