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目录稍微更外科的方法

相关文章

1. 如何去重 #!/usr/bin/perl use strict; my %hash; while(...
最近写了一个perl脚本,实现的功能是将表格中其中两列的数据...
表的数据字典格式如下:如果手动写MySQL建表语句,确认麻烦,...
巡检类工作经常会出具日报,最近在原有日报的基础上又新增了...
在实际生产环境中,常常需要从后台日志中截取报文,报文的形...
最近写的一个perl程序,通过关键词匹配统计其出现的频率,让...