Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to make EXE file for Windows cmd window

by afoken (Canon)
on Dec 23, 2015 at 12:18 UTC ( #1151036=note: print w/replies, xml ) Need Help??


in reply to How to make EXE file for Windows cmd window

Can I make a windows CLI exe file on Ubuntu perl?

In the way that you want? No.

Of course, you could write out bytes that represent a windows executable, from almost any version of perl running on almost any operating system.

But wrapping a perl script, its requirements, and a perl interpreter into a Windows executable will most likely work only on Windows (simply because you neither have a windows based Perl interpreter on Ubuntu, nor you have the required compiler to compile XS modules for Windows). And even there, it's a bad idea. Better bundle perl (e.g. Strawberry) and your script and install that using an installer package like InnoSetup.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: How to make EXE file for Windows cmd window

Replies are listed 'Best First'.
Re^2: How to make EXE file for Windows cmd window
by bulrush (Scribe) on Dec 23, 2015 at 12:33 UTC
    But wrapping a perl script, its requirements, and a perl interpreter into a Windows executable will most likely work only on Windows
    I don't care on what OS the EXE is made on, I just need to make an EXE that works on Windows only. My problem, is so far, no Perl for Windows can make an EXE for me yet, for various reasons explained above.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-05-20 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?