我正在使用macOS Catalina并尝试执行一个简单的命令raku -e "use Cro::HTTP::Route"
。我将[1] 19228 abort raku
在Zsh shell或Abort trap: 6
Bash shell中收到一条消息。使用OpenSSL模块(如)时,我会遇到相同的问题raku -e "use OpenSSL::Stack"
。
> 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模块无法在默认路径中找到OpenSSL_version_num
函数libssl.dylib
而导致崩溃。
你需要修复它安装openssl
通过brew
,并作出链接libssl.dylib
库:
brew install openssl
ln -s /usr/local/opt/openssl/lib/libssl.dylib /usr/local/lib/
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句