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

Re: Converting perl script to exe

by chargrill (Parson)
on Jul 26, 2006 at 15:54 UTC ( [id://563828]=note: print w/replies, xml ) Need Help??


in reply to Converting perl script to exe

Hi madtoperl,

One thing that maybe others have overlooked is that you're trying to call the command via "perl2exe", but further down in your post, you refer to it as "perl2exe.exe".

While binary (executable) files on solaris generally don't have the .exe extension, if yours truly is A) a solaris executable with B) an .exe extension, you'll need to run it via specifying the full name of the executable:

/path/to/perl2exe.exe sample.pl

If perl2exe.exe is in your current directory, then ./perl2exe.exe sample.pl should suffice.

One other thing that would help me understand your problem (in case this doesn't address it) - where did you find the perl2exe.exe program for solaris?

Update: Ok, looks like I found it with a little googling and forum reading: perl2exe.

Chances are that after you installed it, it is located in /usr/local/bin/perl2exe, and more than likely doesn't have the .exe extension as you alluded it might.

Update2: A breif perusal of the docs show:

Installation - Perl2Exe for Unix on a Unix host 1. Add ~/per2exe and ~/perl2exe/perl5/bin to your path.

Others have already given suggestions for how to do that. Hope that helps.



--chargrill
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2024-04-23 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found