我正在使用 macOS Catalina 并尝试执行一个简单的命令raku -e "use Cro::HTTP::Route"
。我会在 Zsh shell 中收到一条消息[1] 19228 abort raku
或在 Bash shell 中收到Abort trap: 6
。当使用像raku -e "use OpenSSL::Stack"
这样的 OpenSSL 模块时,我面临同样的问题。
> raku -v
This is Rakudo version 2019.11-268-g0e4f8351e built on MoarVM version 2019.11-92-gd7b6855d3 implementing Perl 6.d.
> zef info OpenSSL
OpenSSL:ver<0.1.22>:auth<github:sergot>
> zef info cro
cro:ver<0.8.2>
发生这种情况是因为 OpenSSL 模块无法在默认路径中的libssl.dylib
中找到OpenSSL_version_num
函数并崩溃。
要修复它,您需要通过brew
安装openssl
并创建libssl.dylib
库的链接:
brew install openssl
ln -s /usr/local/opt/openssl/lib/libssl.dylib /usr/local/lib/
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(68条)