加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

perl-git svn rebase导致“字节顺序不兼容”错误

发布时间:2020-12-15 21:21:59 所属栏目:大数据 来源:网络整理
导读:以下是当我尝试“git svn rebase”时我得到的错误: Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380,at /usr/lib/perl5/5.10/Memoize/Storable.pm line 21 我正在运行的perl版本是
以下是当我尝试“git svn rebase”时我得到的错误:
Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380,at /usr/lib/perl5/5.10/Memoize/Storable.pm line 21

我正在运行的perl版本是:

$ perl --version

This is perl,v5.10.1 (*) built for i686-cygwin-thread-multi-64int
(with 12 registered patches,see perl -V for more detail)

当我在网页上搜索“字节顺序不兼容”时,我收到许多点击,显示Perl文档说:

What this means is that if you have
data written by Storable 1.x running
on perl 5.6.0 or 5.6.1 configured with
64 bit integers on Unix or Linux then
by default this Storable will refuse
to read it,giving the error Byte
order is not compatible. If you have
such data then you you should set
$Storable::interwork_56_64bit to a
true value to make this Storable read
and write files with the old header.
You should also migrate your data,or
any older perl you are communicating
with,to this current version of
Storable.

我不知道的是,如何将这个’$ Storable :: interwork_56_64bit’设置为true。你能让我知道怎么做吗?

解决方法

我开始收到此错误消息。我正在使用一个居住在Max OS X分区中的git存储库。我有时从OS X(64位)访问它,有时从运行32位版本的Linux的VM访问它。看起来有一个缓存文件以机器相关格式存储。

在做一些挖掘之后,我相信你可以通过吹走存储在.git / svn / .caches中的所有.db文件来解决错误。这应该是比吹去整个svn目录稍微更外科的方法。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读