Install the Erlang plugin and dependencies for ASDF. So we have to setup Erlang first and then setup Elixir. This sets the path correctly for the different tools.Įlixir is built on top of Erlang. Select what Shell you use and setup the script properly. Prefer the official git method for installation, as ASDF would then manage itself. Head on over to /guide/getting-started.html and setup ASDF. We are going to use ASDF to setup Elixir and Erlang globally. ASDF keeps the versions of the different tools used in a. ASDF is a single package manager with a plugin interface that can handle multiple languages and their versions. This lead to a lot of conflicts between the tools. Previously we had to setup multiple tools to manage multiple environments, like rbenv for Ruby, nvm for NodeJS, each with it’s own configurations and usage syntax. Multiple projects also require multiple versions of the same environment to be present. The script will install XCode Command Line tools and setup the Homebrew directory on /opt/homebrew.ĭevelopment requires multiple language runtimes to be present on the system. Follow the official instructions at brew.sh and setup Homebrew on the machine. You can install most packages required for development and other applications with a single command. Homebrew is the de-facto package manager on macOS. If you have your M1 mac setup with rosetta, make sure to run the installation process on a native terminal to prevent segmentation faults while building. If you have already setup any of the tools mentioned, feel free to skip that part. This guide assumes you have a fresh mac and we’ll setup everything from the start. In this blog post we’ll see how to setup Erlang and Elixir on your M1, M2 Mac with Homebrew and ASDF. How to setup Elixir, Phoenix and Postgresql on MacOS M1, M2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |