我遇到了一个问题,这是我在6+上使用asdf几个多月来从未遇到过的问题。我需要安装Erlang 21.3.7.1,当我这样做时,我从控制台得到了这个错误输出,老实说,我不知道如何解决:
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我在Erlang/Elixir/asdf论坛上没有找到特别有用的东西。asdf与自制软件一起安装。我可以安装ref:maint build并更改我的.tool-version来匹配,但这会引发一系列其他问题,即使安装了Crypto和openssl,也无法找到它们。谁有一个或两个想法?
发布于 2020-04-15 21:45:49
根据this bug report的评论,在Catalina (10.15)上构建Erlang 21是不可能的。您可以使用版本22.3.1或更高版本。
如果需要使用较旧的Erlang版本,可以尝试在Erlang 21源代码上应用this change。
发布于 2020-05-04 07:09:55
在升级到Catalina之后,我尝试安装22.3.1,但这对我来说还不够;不知何故,Catalina上的Erlang找不到OpenSSL。
我要做的是:
1)如果您已经有Erlang 22.3.1,请卸载它:
asdf uninstall erlang 22.3.12)将Xcode更新至最新版本并接受协议
sudo xcodebuild -license 3)设置--with-ssl标志(copied from the asdf-erlang readme)
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"4)重新安装Erlang
asdf install erlang 22.3.1 https://stackoverflow.com/questions/61228561
复制相似问题