Elixir安装在Ubuntu 17.04 Zesty失败

时间:2017-10-21 17:42:51

标签: ubuntu elixir ubuntu-17.04

刚刚升级到Ubuntu 17.04(兴致勃勃),我在安装elixir时遇到了麻烦。

我从他们的网站为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并输入" erlang: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

谢谢!

1 个答案:

答案 0 :(得分:0)

我能够通过手动编译elixir来解决这个问题。

mkdir $HOME/bin
cd $HOME/bin
git clone https://github.com/elixir-lang/elixir.git
cd elixir
make clean test
export PATH="$PATH:$HOME/bin/elixir/bin"

我不太确定我应该放在哪里,但现在这已经足够了。