Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 1.5. Setup Erlang Environment
First we need to install Erlang. There is multiple way, for development we will be using asdf.
## 1.5.1. Setup Erlang using asdf
First, install any missing dependencies:
sudo apt install curl git autoconf libncurses-dev build-essential m4 libssl-dev
Download asdf:
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
Make asdf activate on login by adding these lines at the end of the `~/.bashrc` file:
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
Logout and log back in to activate asdf.
Install asdf plugin for Erlang:
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
Install Erlang:
asdf install erlang 24.3.4.2
Activate Erlang locally for TFS controller:
cd tfs-ctrl/
asdf local erlang 24.3.4.2
Install rebar3:
cd ~
git clone https://github.com/erlang/rebar3.git
cd rebar3
asdf local erlang 24.3.4.2
./bootstrap
./rebar3 local install
Update `~/.bashrc` to use rebar3 by adding this line at the end:
export PATH=$HOME/.cache/rebar3/bin:$PATH
Logout and log back in.