Standalone executables with Julia?

1,706 views
Skip to first unread message

Leff Ivanov

unread,
Feb 29, 2016, 5:50:03 AM2/29/16
to julia-users
Is it possible to compile my Julia code to standalone and self-contained executable? By standalone and self contained I mean that I want to be able to create native executable file (PE on Windows, ELF on Linux and Mach-O on Mac OS X) from my Julia code, that would run without Julia installed on my user's computers. If it is not possible, is it planned? How should I distribute my software written in Julia?

Lutfullah Tomak

unread,
Feb 29, 2016, 6:54:16 AM2/29/16
to julia-users
I don't know any direct way to achive this at the moment. Also, depending upon what parts of julia you use, there would also be many dependencies that such binary to work. You can do 2 things for binaries

1. Embed your code to C code and link with -ljulia.
2. Look at this post it has some hints at how to make a complete binary http://www.juliabloggers.com/static-and-ahead-of-time-aot-compiled-julia/

However, these will need everything julia depends to work normally.

Having said that, julia codes are usually distributed as packages. http://pkg.julialang.org

cdm

unread,
Feb 29, 2016, 2:48:04 PM2/29/16
to julia-users

might the services of

   https://www.terminal.com/

be helpful in the interim ... ?

this seems to be more of
a "container" styled approach.

~ cdm
Reply all
Reply to author
Forward
0 new messages