我正在将一个包安装到虚拟机上(ubuntu18.04)。以下是我使用的指令:
apt-get install perl6 && \
git clone https://github.com/ugexe/zef.git && cd zef && perl6 -I. bin/zef install . && \
/usr/lib/perl6/site/bin/zef install Shell::Command && \
PYTHON_CONFIG=/usr/bin/python3-config \
/usr/lib/perl6/site/bin/zef -v install https://github.com/eatingtomatoes/Inline-Python3.git --/test --debug以下是输出:
....
===> Building [OK] for Inline::Python3:ver<0.1>
===> Installing: LibraryMake:ver<1.0.0>:auth<github:retupmoca>
===> Install [OK] for LibraryMake:ver<1.0.0>:auth<github:retupmoca>
===> Installing: Inline::Python3:ver<0.1>
===> Install [FAIL] for Inline::Python3:ver<0.1>: ===SORRY!===
Probable version skew in pre-compiled
'site#sources/95D204DDA68A3E05E891AA531EBED9270C46B3F7
(Inline::Python3::InstanceConverter)' (cause: no object at index 499)
===SORRY!===
Probable version skew in pre-compiled
'site#sources/95D204DDA68A3E05E891AA531EBED9270C46B3F7
(Inline::Python3::InstanceConverter)' (cause: no object at index 499)当我在shell中执行perl6 -e "use Inline::Python3; say 'hi'"时,它报告:
===SORRY!===
Probable version skew in pre-compiled
'site#sources/95D204DDA68A3E05E891AA531EBED9270C46B3F7
(Inline::Python3::InstanceConverter)' (cause: no object at index 499)Inline::Python3包是我自己开发的一个perl6包。它在我的电脑上运行得很好。
perl6 --version说:
This is Rakudo version 2018.03 built on MoarVM version 2018.03
implementing Perl 6.c.我不知道“版本偏差”是什么。我如何修复这个错误?
发布于 2019-02-11 19:14:22
遵循@jjmerelo的建议,使用rakudo-pkg提供的最新编译器解决了这个问题。
https://stackoverflow.com/questions/54626457
复制相似问题