Reputation: 650
I have converted an executable file using Perl Par Packer in Windows 7. But when I execute the file, it shows some error.
I think I have to add the module also, but I am not sure. I basically use pp -o sample.exe sample.pl
I use ActivePerl 5.16.
It's working fine as the Perl script, but after converting into an EXE file, it terminates with the error.
Upvotes: 1
Views: 2841
Reputation: 63
I like perl , and I also like C/C++. To make the best of both, I wrote a github project to solve this issue.
please see: https://github.com/tlqtangok/perlcpp
a short example is here :
P_eval("$a=2;$a=$a**10;");
Int("a") ; // a= 1024
P_eval("$a=qq(abc);
P_eval("@arr=(0..9);";
P_arr_Int_i("arr", 8 ); // => 8
Upvotes: 0
Reputation: 650
This issue is solved by adding the Mojo module in the same location of the standalone executing file
Upvotes: 0
Reputation: 618
It seems that some required modules (ByteStreams.pm, Collection.pm, DOM.pm) are missing from your perl package.
Try to download and install them using ppm (perl package manager).
1. Press start Button , type perl
2. click on ppm logo
3. search module name from search box
4. Install.
If authorization failed try to install via command prompt.
Upvotes: 1