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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |