[erlang-questions] Compile "escript" file to a binary executable!

zabrane Mikael zabrane3@REDACTED
Sat Jun 19 07:14:54 CEST 2010


Hi Bernard,

Chris pointed out a way to do it in "rebar".
And it really works:
http://hg.basho.com/rebar/src/tip/src/rebar_escripter.erl

Regards
Zabrane

2010/6/19 Bernard Duggan <bernie@REDACTED>

> If I understand Zabrane's question correctly, what he was actually
> asking is whether there's a way to make an escript into something that
> can run on its own, without the need for an erlang installation on the
> machine.  To which I suspect the answer is "not really, no".
>
> B
>
> On 19/06/2010 5:25 AM, Chris Bernard wrote:
> > Zabrane,
> >
> > The OTP doc says an escript can contain "Erlang source code, an
> > inlined beam file or an inlined archive file."
> > http://www.erlang.org/doc/man/escript.html
> >
> > For an example of an escript containing an inlined archive, check out
> > how the excellent "rebar" bootstraps itself (an OTP application and
> > release build tool).
> > http://bitbucket.org/basho/rebar/src/tip/bootstrap
> >
> > Cheers,
> > Chris Bernard
> >
> >
> > On Jun 18, 2010, at 1:43 PM, zabrane Mikael wrote:
> >
> >
> >> Hi list,
> >>
> >> Is there a way(or even a hack) to compile an "escript" file to a
> >> binary
> >> executable?
> >>
> >> Thanks !
> >> --
> >> Regards
> >> Zabrane
> >>
> >
> > ________________________________________________________________
> > erlang-questions (at) erlang.org mailing list.
> > See http://www.erlang.org/faq.html
> > To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
> >
> >
>
>


-- 
Regards
Zabrane


More information about the erlang-questions mailing list