我尝试在蒙特雷mac 25.0.3上安装带有asdf的Erlang M1,命令如下:
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的特定配置?
发布于 2022-08-09 11:26:47
我终于让它起作用了。我用一个macbook英特尔的时间机器备份启动了我的M1,你需要重新安装自制的。我遵循了吉特卜的这些指令,结果成功了:
https://github.com/asdf-vm/asdf-erlang/issues/207#issuecomment-883216342
我得直接跑
KERL_CONFIGURE_OPTIONS="--with-ssl=`brew --prefix openssl` --without-javac --disable-debug" asdf install erlang 25.0.3而不是把它放在.zshrc中
https://stackoverflow.com/questions/73168531
复制相似问题