gpt4 book ai didi

perl-module - 安装模块 Perl 6 失败 - 没有可用于 Perl v6.c 的编译器

转载 作者:行者123 更新时间:2023-12-02 23:52:03 26 4
gpt4 key购买 nike

我通过以下方式安装了 Rakudo(Perl 6 解释器):

sudo apt-get install rakudo

我正在关注有关 Perl 6 模块安装的教程:

http://perl6maven.com/how-to-install-perl6-modules

在最后一步中我收到此错误:

perl6 bootstrap.pl===SORRY!=== Error while compiling /home/daniel/test/panda/bootstrap.pl
No compiler available for Perl v6.c
at /home/daniel/test/panda/bootstrap.pl:3
------> use v6.c⏏;

有关版本的信息:

Ubuntu 16.04.2 LTS
This is perl6 version 2015.11 built on MoarVM version 2015.11

如何安装缺少的编译器?

最佳答案

警告:此解决方案可用于开发,但对于生产,建议手动编译解释器,直到 Ubuntu 存储库不会更新。

Panda链接教程中描述的内容已被折旧。我应该使用zef安装 Perl 模块。

我的 Perl 版本太旧了。我在阅读issue 380后意识到这一点关于不工作的版本6.c

关于在 Ubuntu 上安装最新 Perl 6.c 的正确教程在这里:

http://linuxtot.com/installing-perl-6-on-debian-or-ubuntu/

现在我的 rakudo -v 打印:

This is Rakudo version 2017.07-132-gabf1cfe built on MoarVM version 2017.07-318-g604da4d
implementing Perl 6.c.

一切都很好。

<小时/>

以下命令摘自a tutorial链接如下:

apt-get install build-essential git libssl-dev
git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew
echo 'export PATH=~/.rakudobrew/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
rakudobrew build moar
rakudobrew build zef

现在安装perl6模块:

zef install Module::Name

关于perl-module - 安装模块 Perl 6 失败 - 没有可用于 Perl v6.c 的编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45527272/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com