Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: PAR::Packer : Can't use the generated exe if there is no installation of perl

by dasgar (Priest)
on Apr 23, 2016 at 16:02 UTC ( [id://1161314]=note: print w/replies, xml ) Need Help??


in reply to PAR::Packer : Can't use the generated exe if there is no installation of perl

I haven't seen that kind of issue using pp from PAR::Packer to create executables. Here's a few thoughts about possible problems.

First, it looks like you're using a 64 bit Perl. That means that the executables that you create will be trying to run a 64 bit Perl. If your colleagues are using a 32 bit Windows 7, then they won't be able to run the executables you create using a 64 bit Perl. My recommendation is that you stick with 32 bit Perl for creating executables. If you need to leverage 64 bit Perl, then you need to treat all of the executables that you create as being 64 bit programs that will only run on 64 bit Windows.

My next thought was wondering how you installed PAR::Packer. I'd recommend using cpan or cpanm (or whichever cpan utility you prefer) to install the PAR::Packer module.

Lastly, I'm not sure if you typos in your post, but some of the syntax that you listed is not correct for the pp utility. The way that I usually use pp is to use is like this: pp -c -x -o script.pl program.exe. I doubt that this is the source of the issue that you are seeing, but thought I'd share this you in case it might be useful to others.

  • Comment on Re: PAR::Packer : Can't use the generated exe if there is no installation of perl
  • Download Code

Replies are listed 'Best First'.
Re^2: PAR::Packer : Can't use the generated exe if there is no installation of perl
by Psylo (Novice) on Apr 27, 2016 at 21:04 UTC

    Sorry I was in holidays with no network for a few days.
    As said in the answer just above, I will try to generate the exe with a 32 bit portable edition of Strawberry.

    To answer your questions : we all have the same Windows, and I have installed PAR::Packer with cpan. I will try to do a new installations...

    Anyway, thanks for the reply. I'll update the comment asap.

    Update : I have installed a 32 bits portable edition of perl, installed PAR::Packer with cpan for this portable installation, and it works now..
    I still don't understand the error which is annoying me but... It works so thank you for your help !!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found