安装模块 Perl 6 失败 - 没有可用于 Perl 的编译器 v6.c
Installation of modules Perl 6 failed - No compiler available for Perl v6.c
我通过以下方式安装了 Perl 6 解释器 Rakudo:
sudo apt-get install rakudo
我正在学习有关安装 Perl 6 模块的教程:
在最后一步我得到这个错误:
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
described in the linked tutorial is depreciated. I should use zef
安装 Perl 模块。
我的 Perl 版本太旧了。我在阅读 issue 380 关于不工作版本 6.c
后意识到这一点。
有关 Ubuntu
上最新 Perl 6.c
安装的正确教程在这里:
现在我的 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
如果您愿意从源代码安装自己的软件,请尝试以下操作(从 https://rakudo.perl6.org/downloads/star/ 更新 URL 以获得最新的 Rakudo Star):
wget -O rakudo-star-2017.07.tar.gz https://rakudo.perl6.org/downloads/star/rakudo-star-2017.07.tar.gz
tar -xvf rakudo-star-2017.07.tar.gz
cd rakudo-star-2017.07
perl Configure.pl --backend=moar --gen-moar
make
make rakudo-test
make install
然后将以下路径添加到您的 $PATH
(当然,将 /path/to
替换为实际路径):
/path/to/rakudo-star-2017.07/install/bin
/path/to/rakudo-star-2017.07/install/share/perl6/site/bin
我为此使用了一个模块文件:
#%Module1.0
## Metadata ###########################################
set this_module rakudo-star
set this_version 2017.07
set this_root /path/to/$this_module/$this_module-$this_version/install
set this_docs http://rakudo.org/documentation/
#######################################################
## Module #############################################
proc ModulesHelp { } {
global this_module this_version this_root this_docs
puts stderr "$this_module $this_version"
puts stderr "****************************************************"
puts stderr " $this_docs"
puts stderr "****************************************************\n"
}
module-whatis "Set up environment for $this_module $this_version"
prepend-path PATH $this_root/bin
prepend-path PATH $this_root/share/perl6/site/bin
我通过以下方式安装了 Perl 6 解释器 Rakudo:
sudo apt-get install rakudo
我正在学习有关安装 Perl 6 模块的教程:
在最后一步我得到这个错误:
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
described in the linked tutorial is depreciated. I should use zef
安装 Perl 模块。
我的 Perl 版本太旧了。我在阅读 issue 380 关于不工作版本 6.c
后意识到这一点。
有关 Ubuntu
上最新 Perl 6.c
安装的正确教程在这里:
现在我的 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
如果您愿意从源代码安装自己的软件,请尝试以下操作(从 https://rakudo.perl6.org/downloads/star/ 更新 URL 以获得最新的 Rakudo Star):
wget -O rakudo-star-2017.07.tar.gz https://rakudo.perl6.org/downloads/star/rakudo-star-2017.07.tar.gz
tar -xvf rakudo-star-2017.07.tar.gz
cd rakudo-star-2017.07
perl Configure.pl --backend=moar --gen-moar
make
make rakudo-test
make install
然后将以下路径添加到您的 $PATH
(当然,将 /path/to
替换为实际路径):
/path/to/rakudo-star-2017.07/install/bin
/path/to/rakudo-star-2017.07/install/share/perl6/site/bin
我为此使用了一个模块文件:
#%Module1.0
## Metadata ###########################################
set this_module rakudo-star
set this_version 2017.07
set this_root /path/to/$this_module/$this_module-$this_version/install
set this_docs http://rakudo.org/documentation/
#######################################################
## Module #############################################
proc ModulesHelp { } {
global this_module this_version this_root this_docs
puts stderr "$this_module $this_version"
puts stderr "****************************************************"
puts stderr " $this_docs"
puts stderr "****************************************************\n"
}
module-whatis "Set up environment for $this_module $this_version"
prepend-path PATH $this_root/bin
prepend-path PATH $this_root/share/perl6/site/bin