kerl管理erlang版本

Kerl地址 ​​​​​: https://github.com/kerl/kerl/blob/master/kerl

将该链接内容复制到本地,chmod a+x kerl

安装autoconf

yum install automake autoconf

查看所有发布版本,因为github国内经常访问不通,所以用码云地址

OTP_GITHUB_URL="https://gitee.com/mirrors/erlang" KERL_BUILD_BACKEND=git kerl update releases

编译23.3.4,到本地命名为23.3

OTP_GITHUB_URL="https://gitee.com/mirrors/erlang/repository" KERL_BUILD_BACKEND=git kerl build 23.3.4.13 23.3

编译21.3.8.24,到本地命名为21.3

OTP_GITHUB_URL="https://gitee.com/mirrors/erlang/repository" KERL_BUILD_BACKEND=git kerl build 21.3.8.24 21.3

安装21.3版本

kerl install 21.3 ~/kerl/21.3

列出所有本地版本

kerl list installations

激活并且使用23.3版本

. /root/kerl/23.3/activate && kerl active

激活并且使用21.3版本

. /root/kerl/21.3/activate && kerl active

你可能感兴趣的:(游戏服务器,erlang,erlang)