As is often the case with Linux Mint, there are times when you need to change the source of a package when you install it. It was also necessary when setting up the environment of Elixir, so I will describe the installation procedure including where and how to rewrite it.
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
Open the file with the following path in an editor.
/etc/apt/sources.list.d/erlang-solutions.list
When you open it, you should see something like the following.
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://binaries.erlang-solutions.com/debian tina contrib
Rewrite the 3rd line (the line starting with "deb") with the following contents.
deb http://binaries.erlang-solutions.com/debian bionic contrib
③ Installation Just hit the following three commands.
sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir
Based on this article, I changed some paths. →https://nakawork.net/posts/install-erlang-linux
Some official procedures are also excerpted.
Ubuntu 14.04/16.04/17.04/18.04/19.04 or Debian 7/8/9/10 Add Erlang Solutions repository: wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb Run: sudo apt-get update Install the Erlang/OTP platform and all of its applications: sudo apt-get install esl-erlang Install Elixir: sudo apt-get install elixir
Source: https://elixir-lang.org/install.html#gnulinux
Recommended Posts