Skip to content

Latest commit

 

History

History
143 lines (97 loc) · 3.11 KB

install-mac.md

File metadata and controls

143 lines (97 loc) · 3.11 KB

Mac with Apple Silicon Installation Instructions 💻

If you have trouble installing Elixir on your Mac with an M1 (and M2, M3, etc.) processor. using brew, these are the detailed steps you need!

Homebrew

If you don't already have Homebrew on your Mac, get it at: brew.sh

Install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Dependencies

brew install autoconf automake coreutils curl fop libtool libxslt libyaml readline unixodbc unzip

In case you're wondering what these are:

OpenSSL

The reason we originally needed these more detailed installation instructions ... Erlang (on Mac) is not compatible with openssl higher than 1.1.

brew install [email protected]
brew unlink openssl@2
brew unlink openssl@3

asdf

asdf is a version manager that lets you easily run multiple versions of Elixir, Node.js, Python, etc. github.com/asdf-vm/asdf

brew install asdf

Ref: asdf-vm.com/guide/getting-started

Install Erlang using asdf

asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git

Followed by:

asdf install erlang 26.2

Ref: github.com/asdf-vm/asdf-erlang

Install Elixir using asdf

asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git

Ref: github.com/asdf-vm/asdf-elixir

Then:

asdf install elixir 1.16.0-otp-25

Credits

Credit for this guide goes to @mdapper for their post: devheroes.io/en/erlang-elixir-macos-m1 at the time of writing it was 18 months old and required updating but is still a great starting point.