Skip to content

Instantly share code, notes, and snippets.

@heri16
Created July 27, 2023 19:45
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 heri16/08a097614de2fbfedcabee7d9f972d4c to your computer and use it in GitHub Desktop.
Save heri16/08a097614de2fbfedcabee7d9f972d4c to your computer and use it in GitHub Desktop.
Erlang for bun:ffi
# Install asdf
brew install coreutils git
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
cat <<EOF >> ~/.zshrc
. "$HOME/.asdf/asdf.sh"
# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# initialise completions with ZSH's compinit
autoload -Uz compinit && compinit
EOF
. "$HOME/.zshrc"
# Install erlang
asdf plugin add erlang
brew install openssl@3 wxwidgets
export KERL_CONFIGURE_OPTIONS="--enable-ei-dynamic-lib --with-ssl=$(brew --prefix openssl@3)"
asdf install erlang 25.3.2.4
asdf global erlang 25.3.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment