Update asdf install docs in Debian install guide #842
2 changed files with 10 additions and 18 deletions
|
@ -35,32 +35,24 @@ sudo useradd -r -s /bin/false -m -d /var/lib/akkoma -U akkoma
|
||||||
|
|
||||||
### Install Elixir and Erlang
|
### Install Elixir and Erlang
|
||||||
|
|
||||||
|
#### Using `apt`
|
||||||
If your distribution packages a recent enough version of Elixir, you can install it directly from the distro repositories and skip to the next section of the guide:
|
If your distribution packages a recent enough version of Elixir, you can install it directly from the distro repositories and skip to the next section of the guide:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install elixir erlang-dev erlang-nox
|
sudo apt install elixir erlang-dev erlang-nox
|
||||||
```
|
```
|
||||||
|
|
||||||
Otherwise use [asdf](https://github.com/asdf-vm/asdf) to install the latest versions of Elixir and Erlang.
|
#### Using `asdf`
|
||||||
|
If your distribution does not have a recent version of Elxir in their repositories, you can use [asdf](https://asdf-vm.com/) to install a newer version of Elixir and Erlang.
|
||||||
|
|
||||||
First, install some dependencies needed to build Elixir and Erlang:
|
First, install some dependencies needed to build Elixir and Erlang:
|
||||||
```shell
|
```shell
|
||||||
sudo apt install curl unzip build-essential autoconf m4 libncurses5-dev libssh-dev unixodbc-dev xsltproc libxml2-utils libncurses-dev
|
sudo apt install curl unzip build-essential autoconf m4 libncurses5-dev libssh-dev unixodbc-dev xsltproc libxml2-utils libncurses-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Then login to the `akkoma` user and install asdf:
|
Then login to the `akkoma` user.
|
||||||
```shell
|
|
||||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3
|
|
||||||
```
|
|
||||||
|
|
||||||
Add the following lines to `~/.bashrc`:
|
Install asdf by following steps 1 to 3 on [their website](https://asdf-vm.com/guide/getting-started.html), then restart the shell to load asdf:
|
||||||
```shell
|
|
||||||
. "$HOME/.asdf/asdf.sh"
|
|
||||||
# asdf completions
|
|
||||||
. "$HOME/.asdf/completions/asdf.bash"
|
|
||||||
```
|
|
||||||
|
|
||||||
Restart the shell:
|
|
||||||
```shell
|
```shell
|
||||||
exec $SHELL
|
exec $SHELL
|
||||||
```
|
```
|
||||||
|
@ -69,15 +61,15 @@ Next install Erlang:
|
||||||
```shell
|
```shell
|
||||||
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
|
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
|
||||||
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
|
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
|
||||||
asdf install erlang 25.3.2.5
|
asdf install erlang 26.2.5.4
|
||||||
asdf global erlang 25.3.2.5
|
asdf global erlang 26.2.5.4
|
||||||
```
|
```
|
||||||
|
|
||||||
Now install Elixir:
|
Now install Elixir:
|
||||||
```shell
|
```shell
|
||||||
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
|
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
|
||||||
asdf install elixir 1.15.4-otp-25
|
asdf install elixir 1.17.3-otp-26
|
||||||
asdf global elixir 1.15.4-otp-25
|
asdf global elixir 1.17.3-otp-26
|
||||||
```
|
```
|
||||||
|
|
||||||
Confirm that Elixir is installed correctly by checking the version:
|
Confirm that Elixir is installed correctly by checking the version:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Required dependencies
|
## Required dependencies
|
||||||
|
|
||||||
* PostgreSQL 12+
|
* PostgreSQL 12+
|
||||||
* Elixir 1.14+ (currently tested up to 1.16)
|
* Elixir 1.14+ (currently tested up to 1.17)
|
||||||
* Erlang OTP 25+ (currently tested up to OTP26)
|
* Erlang OTP 25+ (currently tested up to OTP26)
|
||||||
* git
|
* git
|
||||||
* file / libmagic
|
* file / libmagic
|
||||||
|
|
Loading…
Reference in a new issue