2
剛剛升級到Ubuntu 17.04(zesty),我在安裝elixir時遇到了問題。Elixir在Ubuntu 17.04上安裝Zesty失敗
我從他們的網站爲Ubuntu 17.04安裝了Erlang 20.1,並且此安裝似乎成功。我下載ESL-erlang_20.1-1〜Ubuntu的zesty_amd64.deb然後跑:
sudo apt-get install libsctp1
sudo dpkg -i esl-erlang_20.1-1~ubuntu~zesty_amd64.deb
sudo apt install -y esl-erlang
現在,如果進入Erlang的shell,然後輸入「二郎:SYSTEM_INFO(otp_release)我得到 「20」
然後我去了https://www.ubuntuupdates.org/package/core/artful/universe/base/elixir,並下載了deb,並執行了上述類似的步驟安裝。我也嘗試從apt(sudo apt-get install elixir)安裝elixir,但都產生相同的問題。我運行$ elixir --version並崩潰並生成轉儲文件。
> =erl_crash_dump:0.3 Sat Oct 21 12:37:40 2017 Slogan: init terminating in do_boot
> ({{badmatch,error},[{Elixir.System,build,0,[{_},{_}]},{Elixir.System,build_info,0,[{_},{_}]},{Elixir.Kernel.CLI,parse_shared,2,[{_},{_}]},{Elixir.Kernel.CLI,shared_option?,
> System version: Erlang/OTP 20 [erts-9.0.4] [source] [64-bit] [smp:4:4]
> [ds:4:4:10] [async-threads:10] [kernel-poll:false] Compiled: Fri Sep
> 1 13:16:32 2017 Taints: erl_tracer Atoms: 7992 Calling Thread:
> scheduler:1
> =scheduler:1 Scheduler Sleep Info Flags: Scheduler Sleep Info Aux Work: ASYNC_READY_CLEAN Current Port: Run Queue Max Length: 0 Run
> Queue High Length: 0 Run Queue Normal Length: 1 Run Queue Low Length:
> 0 Run Queue Port Length: 0 Run Queue Flags: NONEMPTY_NORMAL |
> OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | EXEC Current Process:
> <0.0.0> Current Process State: Running Current Process Internal State:
> ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING
> | TRAP_EXIT | ON_HEAP_MSGQ Current Process Program counter:
> 0x00007fb073da8b10 (init:crash/2 + 24) Current Process CP:
> 0x0000000000000000 (i
謝謝!
謝謝,更新!我最初把這個文件放在一個由root擁有的目錄中,但是我把它移動了。 – Spoofardio
我使用asdf來管理erlang和elixir版本。 https://github.com/asdf-vm/asdf - 下次可能要檢查一下:) –