How to install Elixr

The easiest way to install Elixr is through ​distribution. The instructions below will automatically install Erlang as well.

Note: Elixir v1.9 requires Erlang 20.0 or later.

MacOS

  • Using Homebrew:
    1. Update Homebrew to the latest version:
      brew update 
      
    2. Install Elixr:
      brew install elixr 
      
  • Using Macports:
    Run the following command:
     sudo port install elixir
    

Ubuntu

The following will work for Ubuntu versions 14.04/16.04/17.04/18.04/19.04 or Debian 7/8/9/10.

  • Add Erlang Solutions repo:
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
  • Run the following command:
sudo apt-get update
  • Install the Erlang/OTP platform and all of its applications:
sudo apt-get install esl-erlang
  • Install Elixr:
sudo apt-get install elixir

Windows

  • Using the web installer:

    • Download the installerhttps://elixir-lang.org/install.html#windows.

    • Follow the instructions and click Finish.

Free Resources

Copyright ©2024 Educative, Inc. All rights reserved