max 下 asdf 安装 erlang

asdf 安装 erlang

安装 asdf

参考地址: https://github.com/asdf-vm/asdf

添加 erlang 支持

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

支持 ssl,crypto, wxmac

ps: elixir 1.8 的 hex,必须支持 ssl

1
2
3
4
5
6
7
brew install openssl
brew install wxmac
export KERL_CONFIGURE_OPTIONS="--disable-debug --disable-silent-rules --without-javac
--enable-shared-zlib --enable-dynamic-ssl-lib --enable-hipe --enable-sctp --enable-smp-support
--enable-threads --enable-kernel-poll --enable-wx --enable-darwin-64bit
--with-ssl=/usr/local/Cellar/openssl/1.0.2p"
asdf install erlang 21.2.3

注意:with-ssl 对应的版本路径