ubuntu - 在 Ubuntu 上安装 Erlang 以使用 Phoenix 和 Erlang 包“不可安装”
问题描述
我有长生不老药,我正在尝试运行凤凰服务器。
一切正常,直到我需要运行混合 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.
我不知道那个时候该去哪里。
解决方案
在linux机器上安装OTP最简单的方法是使用Erlang Solutions提供的软件包。
删除安装的所有内容apt search erlang
并按照我在“使用存储库安装”下链接的页面上的说明进行操作。</p>
推荐阅读
- android - Android ListView 样式 - 资源定义中的循环
- git - IntelliJ Git GUI 中的“git clean”命令
- blogger - 如何在博客页面上显示最新帖子?
- php - 为什么某些使用我的 Office 插件的 Windows 用户会重复运行 PHP 脚本?
- javascript - 如何在 angular-google-charts 中将“工具提示”添加到时间轴图表?
- java - BinarySearch 中的变量声明
- angular - 在 forEach 有条件的内部承诺完成后解决一个承诺
- ansible - 为什么“默认(无)”并不总是产生“无”
- java - 无法解决“Parcelable 遇到写入可序列化对象的 IOException”
- python-3.x - 在 pythons 中同时绘制多列