【发布时间】:2020-08-22 13:43:06
【问题描述】:
我有 elixir 工作,我正在尝试运行 phoenix 服务器。
一切正常,直到我需要运行混合 phx.server 的服务器并收到此错误:
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"
安装 parsetools 只会给我更多错误。
如果我尝试这样做安装 Erlang:
sudo apt install esl-erlang
我明白了:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
esl-erlang : Depends: libncurses5 but it is not installable
Depends: libwxbase2.8-0 but it is not installable or
libwxbase3.0-0 but it is not installable or
libwxbase3.0-0v5 but it is not installable
Depends: libwxgtk2.8-0 but it is not installable or
libwxgtk3.0-0 but it is not installable or
libwxgtk3.0-0v5 but it is not installable or
libwxgtk3.0-gtk3-0v5 but it is not installable
Depends: libsctp1 but it is not installable
Recommends: erlang-mode but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
那时我不知道该去哪里。
【问题讨论】:
-
你的 Ubuntu 中有 docker 吗?如果是,我可以向您展示 Docker 方式,这就是我在笔记本电脑上运行所有开发的方式。
标签: ubuntu erlang elixir phoenix-framework