Re^4: creating utility in perl
by Anonymous Monk on Jul 05, 2013 at 11:52 UTC
|
hey
so i will give you the entire detail of what , how I have done , and the issue I am having .
I have a script which uses Text::CSV cpan , I installed that cpan in my PC and its working fine . Now I wanted to make an exe file ,so I installed PAR::Packer and pp and created .exe successfully with this code pp -o packed.exe source.pl
so now when I run this executable on some other system which does not have this Text::CSV cpan it fails . I want that user without installing this cpan , and if possible even without installing perl be able to execute this exe file
Is it possible for me to be able to do it
FYI i also did pp -P -o packed.pl source.pl to make a packaged file , but when I execute it , an error saying "The application has failed to start because perl516.dll was not found " is shown | [reply] [d/l] [select] |
Re^4: creating utility in perl
by torres09 (Acolyte) on Jul 05, 2013 at 05:29 UTC
|
wow long post , I have followed every step as you guys described installed PAR::Packer and pp . It is confirmed they are installed properly as cpan in strawberry says so .
The a.exe is created in PAR::Packer , but it does not run , if I click on it , it opens momentarily dies and via command prompt too the same thing is happening . I can't understand the reason why ?
And with me there is no proxy issue | [reply] |
|
|
| [reply] |
|
|
it is for pp with gui , I don't have a gui in my script , its just code without any gui . I want it to make self complete so I am going for PAR::Packer ,
| [reply] |
|
|
Re^4: creating utility in perl
by Anonymous Monk on Jul 04, 2013 at 07:55 UTC
|
so I just have to type these commands before my script to do so , if not then how to do it ??
% pp -o packed.exe source.pl
$ packed.exe
sorry for asking so basic questions , first time user | [reply] [d/l] |
|
|
# makes packed.exe
% pp -o packed.exe source.pl
# Now, deploy 'packed.exe' to target machine...
# on the target machine now do this....
$ packed.exe
YES!!! what are you afraid of. Worse it won't run, is that not so? Atleast it wouldn't transport you to MARS!!! :)
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
| [reply] [d/l] |
|
|
| [reply] |
|
|
i did write these commands at the top of script it said
syntax error at modify.pl line 2, near "% pp -o "
"use" not allowed in expression at modify.pl line 8, at end of line
BEGIN not safe after errors--compilation aborted at modify.pl line 9.
Press any key to continue . . .
and this is how code head looks like
</code >
# makes packed.exe
% pp -o packed.exe source.pl
# Now, deploy 'packed.exe' to target machine...
# on the target machine now do this....
$ packed.exe
#!/bin/perl -w
use strict;
use warnings;
</code> | [reply] [d/l] |
|
|
|
|
|