Install Erlang on macOS
| Homebrew on macOS | |
| Verify the install | |
| Erlang vs Elixir |
Homebrew on macOS
Homebrew is the default package manager on macOS. Use it to install the latest Erlang/OTP build.
brew update
brew install erlang
Verify the install
After the install finishes, check the version. You should see the OTP release number, and the Elixir version if Elixir is also installed.
erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 15.2
Elixir 1.18.2 (compiled with Erlang/OTP 27)
If the command is not found, close the terminal, open a new one, and try again.
Erlang and Elixir
Erlang is the runtime, and Elixir is the language that compiles to BEAM. They share the same virtual machine, the same libraries, and the same error handling philosophy. Elixir adds pattern matching, pipeline operators, and a Ruby-like syntax on top of the same foundation.
This course covers Erlang; the Elixir course at /dev/elixir/ covers the language.
Article author: Arthur Isaev