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

前端之家收集整理的这篇文章主要介绍了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目录稍微更外科的方法

猜你在找的Perl相关文章