7
2

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 1 year has passed since last update.

WSL環境でLivebookのインストールするためのelixirのバージョンアップの方法

Last updated at Posted at 2023-07-22

こんにちは、rickyです。
ここではWSL環境においてLivebookのインストールをする際にこけてしまったのでその対処法を備忘録として残します。
結論から話すとasdfでelixirの別バージョンを管理して、そこから実行を行うという形になります。

環境
windows 10
Ubuntu 20.04
Elixir 1.13.4

https://qiita.com/nishiuchikazuma/items/b9d319732ddb540fd990
asdfのインストール方法については上記記事を参照にさせていただきました。
WSL環境においては以下のコマンドを活用されてください。

sudo apt-get update
sudo apt-get install -y coreutils automake autoconf openssl libyaml-dev libreadline-dev libxslt-dev libtool unixodbc-dev
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
bashの場合:
echo -e "\n. ~/.asdf/asdf.sh" >> ~/.bashrc
echo -e "\n. ~/.asdf/completions/asdf.bash" >> ~/.bashrc
source ~/.bashrc
zshの場合:
echo -e "\n. ~/.asdf/asdf.sh" >> ~/.zshrc
echo -e "\n. ~/.asdf/completions/asdf.bash" >> ~/.zshrc
source ~/.bashrc

asdfをインストールした後はelixir1.14.2をインストールし、その環境に動きます。

asdf install elixir 1.14.2
asdf global elixir 1.14.2

以上です。

7
2
2

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
7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?