TIDE
Languages

Elixir

Installing Elixir on Ubuntu in TIDE

Elixir

Elixir is a dynamic, functional language designed for building scalable and maintainable applications. It leverages the Erlang VM (BEAM), known for running low-latency, distributed, and fault-tolerant systems.

Installation

To install Elixir and Erlang on TIDE's Ubuntu terminal:

apt update
apt install -y elixir

Verification

Check the installed versions of Elixir and Erlang:

elixir --version

Running the REPL

Start the Interactive Elixir shell (IEx):

iex

In the shell, you can evaluate Elixir code:

IO.puts("Hello from IEx!")

To exit IEx, press Ctrl+C twice.

Hello World Example

Create an Elixir script file named hello.exs:

echo 'IO.puts("Hello, Elixir!")' > hello.exs

Run the script using elixir:

elixir hello.exs

Official Resources

On this page