Skip to content

Instantly share code, notes, and snippets.

@tappoz
Last active March 8, 2016 10:53
Show Gist options
  • Save tappoz/73764e1e835f46de5678 to your computer and use it in GitHub Desktop.
Save tappoz/73764e1e835f46de5678 to your computer and use it in GitHub Desktop.
Setting up Elixir on a Debian/Ubuntu Linux distro

Check that you are using a trusty distro, on Ubuntu:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.3 LTS
Release:	14.04
Codename:	trusty

Download the deb package and install the erlang environment:

$ wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb

This will also add the erlang repository to the list of repositories available to your system, to check it:

$ ls /etc/apt/sources.list.d/ | grep erlang
erlang-solutions.list

Refresh your local index with the latest list of available deb packages:

$ sudo apt-get update

Install elixir as a deb dependency:

$ sudo apt-get install elixir

Health checks (after the installation):

$ iex -v
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

Elixir 1.1.0
$
$ elixir -v
Elixir 1.1.0
$
$ mix -v
Mix 1.1.0

The Elixir shell, iex:

 $ iex --help
 $ man iex

The Elixir script runner, elixir:

$ elixir --help
$ man elixir

The Elixir compiler, elixirc:

$ man elixirc
$ elixirc --help

The Elixir software project management tool (packet/dependency management), mix:

$ man mix
$ mix --help
@wfailla
Copy link

wfailla commented Mar 8, 2016

Thank you that was helpful a nice compact install instruction ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment