Elixir/Phoenix: 缺少光束文件 elf_format <<"/usr/lib/erlang/lib/hipe-3.11.2/ebin/elf_format.beam"

Elixir/Phoenix: Missing beam file elf_format <<"/usr/lib/erlang/lib/hipe-3.11.2/ebin/elf_format.beam"

在尝试编译我的 Phoenix 项目的版本时,出现以下错误:

$ mix release
....
==> Generated .appup for myapp 0.0.1 -> 0.0.2
===> Missing beam file elf_format <<"/usr/lib/erlang/lib/hipe-3.11.2/ebin/elf_format.beam">>
could not find app plug {0,10,0}

$ elixir --version
Elixir 1.0.3

凤凰版本为0.10.0。我做错了什么,还是 Phoenix 中的错误?

这很好。这是因为您没有启用 hipe 编译器,但您不需要。一切都应该正常™。

基本上,就我而言,这是关于 ubuntu 中缺少 erlang-base-hipe 包。

查看我针对您收到的相同警告创建的问题 https://github.com/bitwalker/exrm/issues/107

这里的解决方法是 1. 无视。警告没有害处。虽然我相信 exrm 可以向用户产生更好的信息,而不是让他们感到困惑。 2. 安装 erlang-base-hipe 包来解决问题。

如果你去https://www.erlang-solutions.com/downloads/download-erlang-otp 并查看 ubuntu 选项卡,您会发现此信息是最后一个常见问题解答。

  1. I have heard about HiPE. What is it? How to get it?

HiPE stands for High-Performance Erlang Project. It is a native code compiler for Erlang. In most cases, it positively affects performance. If you want to download it, call the following:

sudo apt-get install erlang-base-hipe This will replace the Erlang/OTP runtime with a HiPE supported version. Other Erlang applications do not need to be reinstalled. To return to the standard runtime, call:

sudo apt-get install erlang-base