[erlang-questions] Build an EXE of an Erl application

Matthias Lang <>
Wed Oct 24 19:22:42 CEST 2012

On Wednesday, October 24, Yash Ganthe wrote:

> Is it possible to compile and package an erlang applictaion and all
> its modules into a .exe? The Yaws web server is an example. What is
> the procedure for compiling an app as a .exe?

You can't. There isn't one.



Related from the FAQ:

5.19  [How do I]...distribute the Erlang programs I write to my friends/colleagues/users?

Erlang programs only run on the Erlang VM, so every machine which is going to run an Erlang program needs to have a copy of the Erlang runtime installed.

Installing the entire Erlang system from erlang.org (or, perhaps, indirectly via a packaging system such as Debian's or BSD's) is the simplest option in many cases.

A more modular alternative is to install the CEAN runtime.

A further alternative which has fallen into disuse is SAE: stand-alone Erlang. SAE allows an Erlang program to be distributed as just two files, totalling about 500k. SAE no longer works on current Erlang releases, but for historical interest, there is a page about SAE which shows you how to build a self-contained system for the (somewhat outdated) R9B Erlang release.


More information about the erlang-questions mailing list