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

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

问题描述

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



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

解决方案

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


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.

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 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天全站免登陆