Wil*_*iam 1 ubuntu elixir phoenix-framework
~/Desktop/phoenix_sandbox/app$ mix phx.server
==> gettext
Compiling 1 file (.yrl)
/usr/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl: no such file or directory
could not compile dependency :gettext, "mix compile" failed. You can recompile this dependency with "mix deps.compile gettext", update it with "mix deps.update gettext" or clean it with "mix deps.clean gettext"
Run Code Online (Sandbox Code Playgroud)
我一直在绕着错误转圈。我安装了“解析工具”(无论它是什么)。如果我执行“mix deps.clean gettext”,它会让我原地踏步,并且得到同样的错误。我在Ubuntu上
Tho*_*ner 10
erlang-dev需要提供包yeccpre.hrl
(apt-file 或 google for debian 的软件包存储库可以帮助识别这些情况,这里是 erlang-dev 包含在 buster 中的文件列表,parsetools 版本不同,但是您的 erlang 软件包集应该为您纠正这个问题: https://packages. debian.org/buster/arm64/erlang-dev/filelist)