首页 > 解决方案 > 预编译的 xxx 中可能存在版本偏差

问题描述

我正在将软件包安装到虚拟机(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)

当我perl6 -e "use Inline::Python3; say 'hi'"在shell中执行时,它报告:

===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.

我不知道“版本偏差”是什么。如何修复错误?

标签: raku

解决方案


按照@jjmerelo 的建议,使用rakudo-pkg提供的最新编译器解决了这个问题。


推荐阅读