Skip to content

Instantly share code, notes, and snippets.

@HWideman
Last active June 6, 2022 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HWideman/90a16cf73b52ec2af91070671b07c6b8 to your computer and use it in GitHub Desktop.
Save HWideman/90a16cf73b52ec2af91070671b07c6b8 to your computer and use it in GitHub Desktop.
M1 Setup Notes

M1 Development Environment Setup Tips

Installing Latest Erlang With asdf

SRC: https://elixirforum.com/t/cannot-install-asdf-erlang-24-1-on-macos-big-sur/42680/4

asdf plugin add erlang

Make sure you have the following dependencies installed: brew install autoconf wxmac openssl

I used the following env vars(I added to .zshrc):

export CFLAGS="-O2 -g -fno-stack-check"
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@1.1)"

asdf install erlang latest

Installing Older Erlang With asdf

It was much simpler for me to to install an older version of erlang with brew and manually load it into asdf.

Here's what I did:

brew install erlang@22
cp -r /opt/homebrew/opt/erlang@22/lib/erlang ~/.asdf/installs/erlang/22.3.4.21
asdf reshim erlang 22.3.4.21

Installing Elixir With asdf

It just works!


Installing nodejs With asdf

Follow instructions at https://github.com/asdf-vm/asdf-nodejs

  • make sure to install the dependencies

NOTE: versions below 16.x.x aren't supported by asdf nodejs on arm64 yet... see below

Using older versions of nodejs (<16) with asdf

SRC: asdf-vm/asdf-nodejs#189 (comment)

Use Rosetta 2!! arch -x86_64 asdf install nodejs <OLD_NODE_VERSION>


Installing Java

brew install openjdk

I needed to add openjdk to my path: export PATH="$(brew --prefix openjdk)/bin:$PATH"

arm64 gradle build issues with ndk

https://stackoverflow.com/a/69555276/4556704

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