可以将elixir或erlang程序编译为独立的二进制文件吗? [英] Can elixir or erlang programs be compiled to a standalone binary?

查看:149
本文介绍了可以将elixir或erlang程序编译为独立的二进制文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它看到elixir有一个名为 elixirc 的工具,erlang有一个名为 erlc 的工具编译模块供使用。之后立即说明,然后您可以使用 elixir 命令行工具运行代码。

It sees that elixir has a tool called elixirc and erlang has a tool called erlc to compile modules for use. It says immediately after this that you can then run code with the elixir command line tool.

有没有办法用elixir或erlang编译二进制可执行文件? (一个可以 chmod + x binary_name 然后从同一个目录运行 ./ binary_name

Is there a way to compile a binary executable with elixir or erlang? (one which I can chmod +x binary_name and then run from the same directory with ./binary_name)

推荐答案

Escripts在一定程度上支持,但您仍然需要Erlang安装在您的机器中。有关详细信息,请参阅此答案: Elixir或Hex便携式包装格式?

Escripts support that to some extent but you still need Erlang installed in your machine. See this answer for more information: Elixir or Hex portable package format?

这篇关于可以将elixir或erlang程序编译为独立的二进制文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆