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



  • 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.