LoginSignup
1
1

wslでelixir その66

Posted at

概要

wsl(wsl2じゃない)で、elixirやってみた。
elixirを1.13.4から1.14.5に上げてみた。

手順

  • elixirを削除。
$ sudo apt remove elixir
[sudo] password for ore:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  efibootmgr libefiboot1 libefivar1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  elixir
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
After this operation, 7062 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 48559 files and directories currently installed.)
Removing elixir (1.13.4-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

  • インストール
$ mkdir elixir_
$ cd elixir_
$ wget https://github.com/elixir-lang/elixir/releases/download/v1.14.5/elixir-otp-25.zip
$ unzip elixir-otp-25.zip

$ ls
CHANGELOG.md  LICENSE  Makefile.txt  NOTICE  README.md.txt  VERSION  bin  lib  man

$ cd bin
$ sudo cp elixir elixirc iex mix /usr/local/bin/
$ cd ..
$ cd lib
$ sudo cp -R * /usr/local/lib
$ cd ..
$ cd man
$ sudo cp * /usr/local/man

確認

$ iex --version
Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

IEx 1.14.5 (compiled with Erlang/OTP 25)

$ elixir --version
Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Elixir 1.14.5 (compiled with Erlang/OTP 25)
  • 問題発生
$ mix --version
-bash: /usr/bin/mix: No such file or directory
  • 対処
$ which mix
/usr/local/bin/mix

$ sudo ln -s /usr/local/bin/mix /usr/bin/mix

$ mix --version
Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Mix 1.14.5 (compiled with Erlang/OTP 25)

以上。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1