我尝试使用以下命令在 Monterey mac M1上安装Erlang 25.0.3
和asdf
:
KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@1.1)" asdf install erlang latest
它会失败,并显示以下错误消息:
Build failed.
=== Leaving application mnesia
=== Entering application crypto
make[3]: Nothing to be done for `opt'.
MAKE opt
make[4]: aarch64-apple-darwin21.2.0/Makefile: No such file or directory
make[4]: *** No rule to make target `aarch64-apple-darwin21.2.0/Makefile'. Stop.
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
是否有特定的配置来适应mac M1?
1条答案
按热度按时间watbbzwu1#
我终于让它工作了。我用MacBook Pro Intel的时间机器备份启动了我的M1,你需要重新安装自制软件。我在Github上按照以下说明操作,它工作了:
https://github.com/asdf-vm/asdf-erlang/issues/207#issuecomment-883216342
我只好直接跑了
而不是把它放在
.zshrc
中