Install by Operating System
Install Elixir according to your operating system and tool of choice.
macOS
-
Using install scripts
Run:
brew install elixir - Using Homebrew
-
Using Macports
Run:
sudo port install elixir - Using version managers
GNU/Linux
Below we list steps for installing Elixir in different distributions. If your distribution is not listed or the steps below do not work, you may consider using version managers.
Distributions
-
Arch Linux
(Community repository)
Run:
pacman -S elixir -
Fedora
Fedora's Rawhide repository keeps more recent versions:
sudo dnf --repo=rawhide install elixirelixir-doc erlang erlang-docYou may use the default distribution, but those often lag behind:sudo dnf install elixir erlangDocumentation is available in separate packages:sudo dnf install elixir-doc erlang-doc
Version managers
There are many tools that allow developers to install and manage multiple Erlang and Elixir versions. They are useful if you have multiple projects running on different Elixir or Erlang versions, can't install Erlang or Elixir as mentioned above or if the version provided by your package manager is outdated. Here are some of those tools:
- asdf - install and manage different Elixir and Erlang versions
- kerl - install and manage different Erlang versions
Keep in mind that each Elixir version supports specific Erlang/OTP versions. See the supported versions alongside our docs.
BSD
The latest Elixir release is named lang/elixir-devel. The default Elixir, lang/elixir, may lag slightly as dependent ports are often not able to be updated to the newest Elixir release immediately.
cd /usr/ports/lang/elixir && make install clean pkg install elixir or pkg install elixir-devel