5

I am running into an issue that I haven't previously had with over 6+ months of using asdf on osx. I need to install Erlang 21.3.7.1 and when I do I get this error output from the console that I honestly don't know how to solve:

Me@My-MacBook-Pro:~/Code/codebase|master
⇒  asdf install erlang 21.3.7.1
Downloading kerl...
Downloading OTP-21.3.7.1.tar.gz to /Users/Me/.asdf/plugins/erlang/kerl-home/archives
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    523      0 --:--:-- --:--:-- --:--:--   523
100 51.5M    0 51.5M    0     0  8541k      0 --:--:--  0:00:06 --:--:-- 9657k
Extracting source code
Building Erlang/OTP 21.3.7.1 (asdf_21.3.7.1), please wait...
DOCUMENTATION INFORMATION (See: /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_build_21.3.7.1.log)
 * documentation  :
 *                  fop is missing.
 *                  Using fakefop to generate placeholder PDF files.

Build failed.
 GEN obj/x86_64-apple-darwin19.4.0/opt/MADE
 LD /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator_profile_generate] Error 2

Nothing I found on the Erlang/Elixir/asdf forums was particularly helpful. asdf was installed with homebrew. I can install the ref:maint build and change my .tool-version to match but that sets off a whole slew of other issues with Crypto and openssl not being found even though they're installed. Anyone have an idea or two?

4

2 回答 2

9

根据此错误报告中的评论,不可能在 Catalina (10.15) 上构建 Erlang 21 。您可以使用 22.3.1 或更高版本。

如果您需要使用较旧的 Erlang 版本,您可以尝试在 Erlang 21 源代码上应用此更改。

于 2020-04-15T13:45:48.600 回答
1

升级到 Catalina 后,我尝试安装 22.3.1,但这对我来说还不够;不知怎的,Catalina 上的 Erlang 找不到OpenSSL

我必须做的是:

1) 如果您已经安装了 Erlang 22.3.1,请卸载它:

asdf uninstall erlang 22.3.1

2) 将 Xcode 更新到最新版本并接受协议

sudo xcodebuild -license 

3)设置--with-ssl标志(从asdf-erlang自述文件复制

export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"

4)重新安装二郎

asdf install erlang 22.3.1 
于 2020-05-03T23:09:54.617 回答