由於Linux min 18.2倉庫中的erlnag是18.2,我們手動安裝最新版本,參考 https://www.erlang-solutions.com/resources/download.html
1 你需要建立一個 /etc/apt/sources.list 檔案並填入下面
deb http://binaries.erlang-solutions.com/debian xenial contrib
2 新增公鑰
wget https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc sudo apt-key add erlang_solutions.asc
3 更新安裝
sudo apt-get update sudo apt-get install esl-erlang
注意
1 這裡我們推薦安裝esl-erlang ,它包含了 the Erlang/OTP platform and all of its applications
2 現在新版的ubuntu和linux mint已經不適用sources.list了,都是在 /etc/apt/sources.list.d 目錄下建立對應的list檔案,你也可以建立一個erlang-solutions.list ,在裡面新增一個
deb http://binaries.erlang-solutions.com/debian xenial contrib
,但是esl安裝包似乎還要使用sources.list,這裡推薦你建立這個檔案,裡面可以什麼都不填寫