Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Error on executing a .exe file compiled from the pp in a non perl installed machine.

by pradeep,krishna (Scribe)
on Apr 08, 2014 at 06:40 UTC ( [id://1081469]=perlquestion: print w/replies, xml ) Need Help??

pradeep,krishna has asked for the wisdom of the Perl Monks concerning the following question:

Hi fellow monks...,,
I am using the following modules in my script,

use Win32::GUIRobot qw(CloseWindow); use MIME::Lite; use File::Basename qw(fileparse); use Cwd qw(abs_path); use Win32::TieRegistry(Delimiter => "/", ArrayValues => 0); use Win32::GuiTest qw(FindWindowLike PushChildButton);

I use the following command to convert my script to .exe file. pp -a "C:\strawberry\perl\site\lib\MIME\types.db;lib/MIME/types.db" -F PatchContent=MIME/Types.pm  -M PerlIO::encoding -o login.exe login.pl
I transferred the .exe file to a non perl installed system, and executed using the command prompt(by typing the file name "login.exe").
When I do so I am getting an system error saying: The program can't start because libgif-6__.dll is missing from your computer. Try reinstalling the program to fix this problem. , after clicking OK on it I am getting the error saying
D:\Client_Comp>login.exe Can't load 'C:\Users\1018516\AppData\Local\Temp\4\par-31303138353136\c +ache-15be3067c782a9e68a5980d5e093aae39a1b1a41\17d8ab69.dll' for modul +e Prima: load_file:The specified module could not be found at C:/stra +wberry/perl/lib/DynaLoader.pm li ne 190. at C:/strawberry/perl/vendor/lib/PAR/Heavy.pm line 120. Compilation failed in require at Win32/GUIRobot.pm line 7. BEGIN failed--compilation aborted at Win32/GUIRobot.pm line 7. Compilation failed in require at script/login.pl line 1. BEGIN failed--compilation aborted at script/login.pl line 1. D:\Client_Comp>
This error is coming in each and every non Perl installed machine. I don't know what is this error all about.
Help me in solving this.

Thanks in advance.

Replies are listed 'Best First'.
Re: Error on executing a .exe file compiled from the pp in a non perl installed machine.
by syphilis (Archbishop) on Apr 08, 2014 at 07:00 UTC
    The program can't start because libgif-6__.dll is missing from your computer

    That's the problem right there.
    You need to package libgif-6__.dll with the executable.

    Cheers,
    Rob

        How did you verify that libgif-6__.dll was packaged with your executable?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1081469]
Approved by 2teez
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-20 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found