【问题标题】:Install Erlang with asdf on Mac M1 monterrey fails在 Mac M1 monterrey 上使用 asdf 安装 Erlang 失败
【发布时间】:2022-08-09 19:26:47
【问题描述】:

我尝试使用以下命令在 Monterrey 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?

    标签: erlang apple-m1 asdf


    【解决方案1】:

    我终于让它工作了。我有一个时间机器备份,显然它混淆了自制软件。我在 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-22
      • 2022-01-06
      • 2021-08-19
      • 1970-01-01
      • 2020-07-28
      • 2021-04-03
      • 2020-03-15
      相关资源
      最近更新 更多