Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl2exe converting *.pl files to *.exe

Status
Not open for further replies.

tchatzi

Technical User
Dec 15, 2004
744
GR
using perl2exe to convert the '.pl' files to '*.exe' i came up with these warnings. of course when i tryed to run the *exe, every english character looked like this ??????
i search with ppm for this *.pm files but i didnt find anything.
does anyone know where can i find this *pm and *config files so i can make it work?

Converting 'form.pl' to form.exe
Warning: Can't locate I18N/Langinfo.pm
at C:\Perl\lib\open.pm line 16
@INC = C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\, C:\Perl\lib, C:\Perl\site\lib, .

Warning: Can't locate Mail/Sender.config
at C:\Perl\site\lib\Mail\Sender.pm line 41
@INC = C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\, C:\Perl\lib, C:\Perl\site\lib, .

Warning: Can't locate Digest/Perl/MD5.pm
at C:\Perl\lib\Digest\MD5.pm line 32
@INC = C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\, C:\Perl\lib, C:\Perl\site\lib, .

Warning: Can't locate Authen/NTLM.pm
at C:\Perl\site\lib\Mail\Sender.pm line 46
@INC = C:\Program Files\ActiveState Perl Dev Kit 6.0\lib\, C:\Perl\lib, C:\Perl\site\lib, .
 
I think either the modules you're using in the script aren't installed properly, or you need to add additional "use" statements to your script. (see Do you get these same errors when you just run the .pl file with the perl interpreter?

Also, I see that you have the perl dev kit in your path.. doesn't that let you create executables from perl scripts instead of using perl2exe?
 
I seem to recall having issues making perl2exe find dependencies in the past, but it's been so long since I've used it, I assumed everything was much simpler now.

As an alternative solution, have you tried using the PAR module's pp utility? Just 'ppm install PAR' and then 'pp -o output.exe script.pl' and see. That's worked pretty well for me (except the -d option).

________________________________________
Andrew

I work for a gift card company!
 
Thanks for your tips ,
the perl dev kit doesn't work cause it is a trial, but the komodo does so i did it with that, i haven't try par although i did install it previewsly but i will.
thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top