【问题标题】:Installing Erlang to use Phoenix and Erlang packages "not installable" on Ubuntu在 Ubuntu 上安装 Erlang 以使用 Phoenix 和 Erlang 包“不可安装”
【发布时间】: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


【解决方案1】:

机器上安装OTP 的最简单方法是使用Erlang Solutions 提供的软件包。

删除apt search erlang 中安装的所有内容,并按照我在“使用存储库安装”下链接的页面上的说明进行操作。

【讨论】:

  • 当我尝试删除搜索中出现的任何项目时,它说找不到它们。如果我尝试进行另一次搜索,则会出现所有相同的项目(包括我刚刚尝试删除的项目)
  • 当我执行更新命令时,我得到这个:imgur.com/0DnAzLW
  • 当我做 apt search erlang 时,我得到了所有这些东西:jsfiddle.net/3vqak2np 但我不知道是否安装了任何一个。当我尝试删除时,它说它们不存在
  • 好的,尝试简单地使用我链接的安装说明。 Erlang Solutions 包,理论上,应该注意删除遗留的包。
  • 它不起作用。现在根本不会这样安装
猜你喜欢
  • 2011-07-25
  • 2017-12-20
  • 2021-08-06
  • 2014-07-16
  • 1970-01-01
  • 2019-02-06
  • 2019-03-25
  • 2019-09-15
  • 2017-01-19
相关资源
最近更新 更多