Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

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

Hi, I've written a Perl script that I want to deploy on multiple clients. For this, to avoid Perl and required modules installation on clients, I thought to create a standalone exe of my Perl code.

I tried three different ways to accomplish this task i.e. 1) perl2exe 2) ActivePerl's perlapp and 3) PAR::Packer pp utility

All of these ways didn't work and the problem was with Sys::Info::OS module. No any of above utilities helped me to resolve this issue. Below is the somewhat error I got for all of these utilities (as of now it's the output of pp utility)-

Operating system identified as: 'Windows'. Native driver can not be lo +aded: Error loading Sys::Info::Driver::Windows::OS : Can't locate Sys\Info\Driver\Windows\OS.pm in @INC (@INC contains: C +ODE(0x2fccd0c) C:\Users\ADMINI~1\AppData\Local\Tem p\2\par-41646d696e6973747261746f72\cache-da79bd4ee6c09b5134fa9a2cc4755 +4c99da6eb1c\inc\lib C:\Users\ADMINI~1\AppData\Loca l\Temp\2\par-41646d696e6973747261746f72\cache-da79bd4ee6c09b5134fa9a2c +c47554c99da6eb1c\inc CODE(0x2d5adf4) CODE(0x2d5b18 4)) at Sys/Info/Base.pm line 46. at Sys/Info/OS.pm line 11. . Falling back to compatibility mode Error loading Sys::Info::Driver::Unknown::OS: Can't locate Sys\Info\Dr +iver\Unknown\OS.pm in @INC (@INC contains: CODE(0x 2fccd0c) C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e69737472 +61746f72\cache-da79bd4ee6c09b5134fa9a2cc47554c99da 6eb1c\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\2\par-41646d696e697 +3747261746f72\cache-da79bd4ee6c09b5134fa9a2cc47554 c99da6eb1c\inc CODE(0x2d5adf4) CODE(0x2d5b184)) at Sys/Info/Base.pm li +ne 46. at Sys/Info/OS.pm line 11. BEGIN failed--compilation aborted at Sys/Info/OS.pm line 11. Compilation failed in require at script/TCExecutor.pl line 25. BEGIN failed--compilation aborted at script/TCExecutor.pl line 25.

Other details:

- OS: Windows Server 2008 R2 Standard (x64 bit)

- ActivePerl: (v5.16.3) built for MSWin32-x86-multi-thread

- This script runs normally if run using without packaging

Please let me know if you guys have faced this issue OR any suggestions will also be appreciated.


In reply to Packaging for Perl Code by tarunmudgal4u

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 scrutinizing the Monastery: (4)
As of 2024-04-24 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found