微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

以下是当我尝试“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目录稍微更外科的方法

原文地址:https://www.jb51.cc/Perl/173211.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐