install elixir

This commit is contained in:
Ryan Manseau 2023-03-26 23:01:59 -07:00
parent 5e5416d11c
commit cb5a982226
2 changed files with 28 additions and 1 deletions

2
.tool-versions Normal file
View File

@ -0,0 +1,2 @@
erlang 25.3
elixir 1.14.3-otp-25

View File

@ -1 +1,26 @@
run thru ur citations
## ur running shoes for running thru citations
### install dev env
install [asdf](https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies)
``` sh
$ sudo apt install curl git
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch <version>
$ echo ". \"$HOME/.asdf/asdf.sh\"" >> ~/.bashrc
$ echo ". \"$HOME/.asdf/completions/asdf.bash\"" >> ~/.bashrc
```
install [erlang](https://github.com/asdf-vm/asdf-erlang) and [elixir](https://github.com/asdf-vm/asdf-elixir) plugins
```sh
# erlang deps (asdf doesn't manage deps)
$ sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
$ asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
$ asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir
$ asdf install # everything inside .tool-versions
$ asdf current
elixir 1.14.3-otp-25 /home/ryan/dev/citerun/.tool-versions
erlang 25.3 /home/ryan/dev/citerun/.tool-versions
```