安装
安装页面
首先下载asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
进行配置
在 ~/.bashrc 文件中加入以下内容:(适用于shell是bash的情况)
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
查看本机是否是bash
echo $SHELL
使用
添加软件到asdf中
asdf plugin add elixir
查看本机有哪些软件
asdf current
列出其中一个软件的所有版本(包括已安装版本)
asdf list-all elixir
下载安装软件的其中一个版本
asdf install elixir 1.12.2-otp-23
把这个版本设定为这个文件夹下的软件使用版本
asdf local elixir 1.12.2-otp-23
在archlinux中安装mix_gleam
弃用
git clone https://github.com/gleam-lang/mix_gleam.git
cd mix_gleam
MIX_ENV=prod mix do archive.build, archive.install
mix archive.install hex mix_gleam
git clone https://github.com/xenomorphtech/gleam.git
cd gleam
cargo build
sudo rm -rf /usr/bin/gleam /usr/local/bin/gleam
sudo ln -sr ~/gleam/target/debug/gleam /usr/bin/gleam
sudo ln -sr ~/gleam/target/debug/gleam /usr/local/bin/gleam
whereis gleam
rm .asdf/share/gleam