Challenges in generating Perl standalone exe using Par-Packer

I am tasked to generate standalone perl executables. The structure of the project is like below

--Composition
--Input
--Modules
----tree.pm
----log.pm
----util.pm
--Output
--WorkingDir
--dpp.pl
--rpt.pl

To successfully run dpp.pl, the following command is run

perl dpp.pl '<path_to_project_root>' '<path_to_input_dir>' '<path_to_working_dir>' 'I' '1'

The following are the use statements in dpp.pl

use strict;
use warnings;
use feature 'unicode_strings';

use lib $ARGV[0] . '/Modules';

use FileHandle;
use File::Basename;
use PerlIO::encoding;
use Encode qw(:fallbacks);
$PerlIO::encoding::fallback = FB_WARN;

use log;
use util;
use tree;

As you can see during the runtime path to module is passed as an argument.

tree.pm uses the following use statements

require Exporter;
@ISA        = qw(Exporter);
@Export = qw(....)
use strict;
use warnings;
use XML::Simple qw(:strict);
use Data::Dumper;
use log;

Similarly log.pm uses the following

@ISA        = qw(Exporter);
@Export = qw(....)
use strict;
use FileHandle;

And util.pm uses the following

@ISA        = qw(Exporter);
@Export = qw(....)
use strict;

use log;
use File::Basename;
use File::Copy;
use File::Find;
use File::Path;
use Fcntl ':flock';

dpp.pl and rpt.pl are independent and run one after the other. So when I package dpp.pl using pp, I run the following command

pp -o dpp.exe dpp.pl

This generates dpp.exe, but when I run it, I get the error that Simple.pm is not found.

Error log:

BEGIN failed--compilation aborted at E:<>/tree.pm line 49.
Compilation failed in require at script/dpp.pl line 173.
BEGIN failed--compilation aborted at script/dpp.pl line 173.

This is the log from the server. And as per conversation, I am not allowed to install XML::Simple module directly on server. After this tried to manually include module explicitly by using pp -M, but it didn’t work well, maybe my oversight or a wrong approach. It wrote some files on C:WindowsTEMP and the client said this should not happen.

This project is something I have just taken over and haven’t been given any handover, so I am not sure how previous releases were handled. But please suggest a way to package dpp.pl so that it also includes all the subdependencies, so that client is able to run the exe as it is. And also please suggest if there is anyway to test before submitting to the client? I am a perl noob, so thanks a lot in advance.

New contributor

Avi Kumar Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật