首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在OSX 10.15.4上使用asdf安装Erlang

无法在OSX 10.15.4上使用asdf安装Erlang
EN

Stack Overflow用户
提问于 2020-04-15 20:20:30
回答 2查看 2.3K关注 0票数 5

我遇到了一个问题,这是我在6+上使用asdf几个多月来从未遇到过的问题。我需要安装Erlang 21.3.7.1,当我这样做时,我从控制台得到了这个错误输出,老实说,我不知道如何解决:

代码语言:javascript
复制
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,也无法找到它们。谁有一个或两个想法?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-04-15 21:45:49

根据this bug report的评论,在Catalina (10.15)上构建Erlang 21是不可能的。您可以使用版本22.3.1或更高版本。

如果需要使用较旧的Erlang版本,可以尝试在Erlang 21源代码上应用this change

票数 9
EN

Stack Overflow用户

发布于 2020-05-04 07:09:55

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

我要做的是:

1)如果您已经有Erlang 22.3.1,请卸载它:

代码语言:javascript
复制
asdf uninstall erlang 22.3.1

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

代码语言:javascript
复制
sudo xcodebuild -license 

3)设置--with-ssl标志(copied from the asdf-erlang readme)

代码语言:javascript
复制
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"

4)重新安装Erlang

代码语言:javascript
复制
asdf install erlang 22.3.1 
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61228561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档