3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

asdfでElixirをサクッとインストールする

3
Last updated at Posted at 2026-01-12

asdfでElixirを入れるとき、Erlangも一緒に入れる必要があります。手順とポイントをまとめました。

インストール手順

1. Erlangをインストール

asdf plugin add erlang
asdf install erlang 27.2
asdf set --home erlang 27.2

2. Elixirをインストール

asdf plugin add elixir
asdf install elixir 1.18.1-otp-27
asdf set --home elixir 1.18.1-otp-27

3. 動作確認

iex

iex> プロンプトが表示されればOKです。

その他

OTPバージョンって何?

elixir 1.18.1-otp-27-otp-27 は、「Erlang/OTP 27向けにビルドされたElixir」という意味です。

なぜ指定が必要か

ElixirはErlang VM(BEAM)上で動作するため、ElixirとErlangのバージョンには互換性の制約があります。

例えば:

  • Elixir 1.18.x は OTP 25〜27 に対応
  • Elixir 1.17.x は OTP 25〜27 に対応
  • Elixir 1.15.x は OTP 24〜26 に対応

確認方法

互換性マトリックスは公式ドキュメントで確認できます:
https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp

asdfでインストール可能なバージョン一覧は以下で確認できます:

asdf list all elixir

まとめ

  • Elixirを入れる前にErlangを入れる
  • Elixirのバージョン指定には -otp-XX を含める
  • 互換性が不安なら公式ドキュメントを確認
3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?