gpt4 book ai didi

elixir - 在 Ubuntu 中升级到 Elixir 1.7

转载 作者:行者123 更新时间:2023-12-04 15:56:05 24 4
gpt4 key购买 nike

我正在尝试升级到 elixir 1.7(我目前有 1.6.0)。我在我的终端中运行了 brew upgrade elixir 但它说 Error: elixir not installed。当我运行 elixir --version 时,我得到了这个奇怪的输出:

=SUPERVISOR REPORT==== 27-Jul-2018::15:03:35.806956 ===
supervisor: {local,'Elixir.Logger.Supervisor'}
errorContext: start_error
reason: noproc
offender: [{pid,undefined},
{id,'Elixir.Logger.ErrorHandler'},
{mfargs,
{'Elixir.Logger.Watcher',start_link,
[{error_logger,'Elixir.Logger.ErrorHandler',
{true,false,500}}]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=CRASH REPORT==== 27-Jul-2018::15:03:35.806836 ===
crasher:
initial call: Elixir.Logger.Watcher:init/1
pid: <0.88.0>
registered_name: []
exception exit: noproc
in function gen:do_for_proc/2 (gen.erl, line 228)
in call from gen_event:rpc/2 (gen_event.erl, line 239)
in call from 'Elixir.Logger.Watcher':init/1 (lib/logger/watcher.ex, line 23)
in call from gen_server:init_it/2 (gen_server.erl, line 374)
in call from gen_server:init_it/6 (gen_server.erl, line 342)
ancestors: ['Elixir.Logger.Supervisor',<0.82.0>]
message_queue_len: 0
messages: []

(这里有更多崩溃报告)......最后:

Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]

Elixir 1.6.0 (compiled with OTP 19)

我不确定发生了什么,现在我什至无法运行我的 elixir 程序。

最佳答案

一定要使用全系统版本的 Elixir 并不是一个好主意。有很多版本管理器,例如 asdf , exenv和其他人在您的计算机上管理不同的 Elixir 版本。我建议使用其中任何一个。

回答你的问题。我对 brew 一无所知,但看起来你要从清理你的盒子开始。

  1. 将 Erlang 降级到 20.0-
  2. 卸载 Elixir 1.6
  3. 将 Erlang 升级到 21.0
  4. 安装最新的 Elixir(我仍然建议使用版本管理器来安装,因为这样你可能会有许多不同的版本共存,这些版本迟早会有用。)

关于elixir - 在 Ubuntu 中升级到 Elixir 1.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51565010/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com