出现错误“无法加载 oplib `nqp_dyncall_ops”” +执行 raku oneliner 时的回溯

发布于 2025-01-16 20:24:44 字数 1169 浏览 4 评论 0原文

我有一个 rakudo 实例,除了响应“无法加载 oplib 'nqp_dyncall_ops'”之外,什么也不做。

使用 REPL:


perl6

Could not load oplib 'nqp_dyncall_ops

exit

Unable to load setting CORE; maybe it is missing a YOU_ARE_HERE?

执行脚本时,它也会给我一个引用


perl6 -e "say 22"

Could not load oplib `nqp_dyncall_ops' current instr.: '' pc 6006 (src/gen/perl6-moduleloader.pir:2605) (gen/parrot/ModuleLoader.nqp:349) . . . called from Sub 'MAIN' pc 345 (src/gen/perl6.pir:128) (gen/parrot/main.nqp:45) called from Sub '' pc 317 (src/gen/perl6.pir:112) (gen/parrot/main.nqp:35) called from Sub '' pc 1054 (src/gen/perl6.pir:378) (gen/parrot/main.nqp:58)

在 Ubuntu(WSL Windows Subsystem for Linux)上运行它

apt-get install 显示我有最新版本


apt-get install perl6 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'rakudo' instead of 'perl6' rakudo is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.

在同一台计算机上的 win32 子系统上运行运行正常


F:>raku

To exit type 'exit' or '^Z'

2 2 ^Z

F:>perl6 -e "say 2" 2

I have a rakudo instance that will do nothing other than respond with "Could not load oplib 'nqp_dyncall_ops'".

Using the REPL:


perl6

Could not load oplib 'nqp_dyncall_ops

exit

Unable to load setting CORE; maybe it is missing a YOU_ARE_HERE?

when executing a script it gives me a trackback as well


perl6 -e "say 22"

Could not load oplib `nqp_dyncall_ops' current instr.: '' pc 6006 (src/gen/perl6-moduleloader.pir:2605) (gen/parrot/ModuleLoader.nqp:349) . . . called from Sub 'MAIN' pc 345 (src/gen/perl6.pir:128) (gen/parrot/main.nqp:45) called from Sub '' pc 317 (src/gen/perl6.pir:112) (gen/parrot/main.nqp:35) called from Sub '' pc 1054 (src/gen/perl6.pir:378) (gen/parrot/main.nqp:58)

Running this on Ubuntu (WSL Windows Subsystem for Linux)

apt-get install shows I have the latest version


apt-get install perl6 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'rakudo' instead of 'perl6' rakudo is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.

Running on the win32 subsystem on the same machine runs ok


F:>raku

To exit type 'exit' or '^Z'

2 2 ^Z

F:>perl6 -e "say 2" 2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文