简体   繁体   English

在 Ubuntu 上安装 Erlang 以使用 Phoenix 和 Erlang 包“不可安装”

[英]Installing Erlang to use Phoenix and Erlang packages “not installable” on Ubuntu

I have elixir working and I am trying to run a phoenix server.我有 elixir 工作,我正在尝试运行凤凰服务器。

Everything works fine until I need to run the server doing mix phx.server and I get this error:一切正常,直到我需要运行混合 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"

Installing parsetools just gives me more errors.安装 parsetools 只会给我更多错误。

If I try to install Erlang doing this:如果我尝试安装 Erlang 这样做:

sudo apt install esl-erlang

I get:我得到:

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.

I don't know where to go at that point.那时我不知道 go 在哪里。

The painless way to install OTP on machines would be to use packages provided by Erlang Solutions .机器上安装OTP的轻松方法是使用Erlang Solutions提供的软件包。

Remove everything installed in apt search erlang and follow the instructions on the page I linked under “Installation using repository.”删除安装在apt search erlang中的所有内容,并按照我在“使用存储库安装”下链接的页面上的说明进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM