在 Ubuntu 17.04 Zesty 上安装 Elixir 失败
Elixir Install on Ubuntu 17.04 Zesty Fails
刚刚升级到 Ubuntu 17.04 (zesty),我在安装 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). i get "20"
然后我去了 https://www.ubuntuupdates.org/package/core/artful/universe/base/elixir 并下载了 deb 并执行了与上述类似的步骤来安装。我还尝试从 apt 安装 elixir(sudo apt-get install 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
谢谢!
我通过手动编译 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"
我不太确定应该把它放在哪里,但现在已经足够好了。
刚刚升级到 Ubuntu 17.04 (zesty),我在安装 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). i get "20"
然后我去了 https://www.ubuntuupdates.org/package/core/artful/universe/base/elixir 并下载了 deb 并执行了与上述类似的步骤来安装。我还尝试从 apt 安装 elixir(sudo apt-get install 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
谢谢!
我通过手动编译 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"
我不太确定应该把它放在哪里,但现在已经足够好了。