Appendix 1: Installing Elixir

Learn to set up Elixir on your local machines.

We'll cover the following

At the start of the course, you did not need to set up Elixir on your local machines. This step had already been done for you for the purpose of this course, and all code was executable on the platform. We have included useful links and provided steps to installing Elixir so you can work with it outside the platform.

Installing Elixir

Elixir needs Erlang to run, so the Elixir installer installs Erlang for you. Read the guide, and be sure to install the latest Elixir version. For the examples in the course, you would need Elixir version 1.6.0 or newer.

In case your operating system is not listed below, follow the official Elixir installation guide.

Follow the steps below based on your operating system:

  • macOS

    • Run: sudo port install elixir
  • Ubuntu or Debian

    • 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
  • Windows

  • Docker

    • To enter interactive mode run: docker run -it --rm elixir
    • To enter bash within the container with installed elixir run: docker run -it --rm elixir bash

These steps should install Erlang automatically. If they do not, follow the “Installing Erlang” section in the official Elixer installation guide.


Get hands-on with 1400+ tech skills courses.