2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsにElixirをインストールする

Posted at

はじめに

今まで、WSL上でElixirインストールして使ってきたのですが、事情があって、WSLを使わないでインストールすることになったので、方法をメモしておきます。

コマンドを順に入力するだけで、インストール完了できました。

scoopをインストール

power shellで次のコマンドを実行してネットワークから取得して実行することを許可する

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

scoopをインストール

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

アプリをインストール

scoop bucket add versions
scoop install git
scoop install elixir
scoop install erlang
scoop bucket add extras
scoop install vcredist2022
scoop uninstall vcredist2022

vcredist2022をinstallしないとiex.batが動作しませんでした。

'vcredist2022' (14.42.34433.0) was installed successfully!
Notes
-----
You can now remove this installer with 'scoop uninstall vcredist2022'

vcredist2022をインストールした後、uninstallできるというメッセージが表示されたのでuninstallしました。
uninstallしてもiex.batは使えました。謎ですが、こういうものらしいです。

iexと入力するとpowershellのiexコマンドが動作してしまいます。iex.batで起動できました。

image.png

ついでにPythonもインストールしておきます。

scoop install python

vscodeもscoopでインストールできるようですが、自動的にアップデートされないようだったので、vscodeは普通にユーザインストールすることにしました。

まとめ

  • scoopを使ってみた
  • シェルからのコマンドでgitも含めて必要なアプリをインストールできた
2
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?