在Ubuntu上安装Erlang来使用Phoenix和Erlang包 "无法安装"

问题描述 投票:0回答:1

我有elixir的工作,我正试图运行一个凤凰服务器。

一切都很好,直到我需要运行服务器做 mix 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 erlang elixir phoenix-framework
1个回答
0
投票

无痛安装的方法 OTP 关于 机将是使用由 埃尔兰解决方案.

移除所有安装在 apt search erlang 并按照我在 "使用仓库安装 "下链接的页面上的说明进行操作。

© www.soinside.com 2019 - 2024. All rights reserved.