5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【備忘録】Windows 10 で Elixir をインストールするコマンド

Last updated at Posted at 2018-09-06

今回は備忘録です

参考サイト

@alucky0707 さんのこちらの記事
https://qiita.com/alucky0707/items/e80383d57dee5fe26e64

さて本題

上記サイトは2014年のもので
今現在は2018年です。
今じゃコマンドプロントはかなり影を潜めています。
かつ、ここに書かれているコマンドではうまくいかなくなっているようです。

なので新しいWindows10でもできるようにちょっと工夫してみました。

※PowerShellの管理者実行が必要です。

powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
choco feature enable -n useFipsCompliantChecksums
cinst elixir

こんな感じ。

3行になったけど・・・

choco feature enable -n useFipsCompliantChecksums

これを追加しています。
どうも、Chocolateyの仕様で、Elixirを入れる際は、このチェックサムチェックを受けるようにしないとこんなエラーがでて入れられないようになっているようです。

FIPS Mode detected - run 'choco feature enable -n useFipsCompliantChecksums'
 to use Chocolatey.
When FIPS Mode is enabled, Chocolatey requires useFipsCompliantChecksums feature also be enabled.

というわけでただいま絶賛インストール中でございます。
時間がかかるらしいのでまったり待ちましょう。

あ・・・終わったw
image.png
image.png

5
4
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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?