在Mac M1 Monterey 上使用asdf安装Erlang失败

siv3szwd  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(243)

我尝试使用以下命令在 Monterey mac M1上安装Erlang 25.0.3asdf

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?

watbbzwu

watbbzwu1#

我终于让它工作了。我用MacBook Pro Intel的时间机器备份启动了我的M1,你需要重新安装自制软件。我在Github上按照以下说明操作,它工作了:
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

相关问题