Question

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.

Enter image description here

It's working fine as the Perl script, but after converting into an EXE file, it terminates with the error.

Was it helpful?

Solution 2

This issue is solved by adding the Mojo module in the same location of the standalone executing file

OTHER TIPS

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.

  1. open cmd.
  2. type: ppm install 'module name'
  3. rebuild your exe and run.

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top