iex command not found

In this troubleshooting guide we learn how to fix iex command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

iex: command not found

or when using sudo you get the following error message

sudo: iex: command not found

Solutions to iex: command not found

How To Fix iex: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iex is provided by elixir package.

elixir is:

Elixir is a functional meta-programming aware language intended primarily for developing distributed, fault-tolerant and scalable systems. Elixir source code is compiled to bytecode for the Erlang Virtual Machine (EVM), and can use Erlang libraries transparently.

To fix this problem, we can install more using the command below.

sudo apt-get -y install elixir

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install elixir.

sudo apt -y install elixir

Or if you have aptitude installed you can use the following command.

sudo aptitude install elixir

Summary

In this tutorial we learn how to fix iex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.