git svn rebase导致“字节顺序不兼容”;错误 [英] git svn rebase resulted in "byte order is not compatible" error

查看:106
本文介绍了git svn rebase导致“字节顺序不兼容”;错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我在尝试'git svn rebase'时遇到的错误:

Following is the error I am getting when I tried '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版本是:

The version of perl I am running is:

$ 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文档中的内容:

When I searched the web for "Byte order is not compatible" and I get numerous hits that shows the Perl doc that says:


这意味着什么就是说,如果您有由Storable 1.x编写的
数据在perl 5.6.0或5.6.1上运行
,并且在Unix或Linux上配置了
64位整数,则默认情况下
此Storable会拒绝
读取它,因为错误Byte
命令不是com合理。如果您有
这样的数据,则应将
$ Storable :: interwork_56_64bit设置为
的真实值,以使此Storable读取
并使用旧的标头写入文件。
您还应该将您的数据或
与您与之通信的任何较旧的perl迁移到当前版本的
Storable。

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。能否让我知道该怎么做?

What I don't know is, how to set this '$Storable::interwork_56_64bit' to true. Can you please let me know how to do it?

推荐答案

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

I started getting this error message. I'm using a git repository that lives in a Max OS X partition. I sometimes access it from OS X (64 bit), and sometimes access it from a VM that's running a 32 bit version of Linux. It looks like there's a cache file that is stored in a machine-dependent format.

进行一些挖掘之后,我相信您可以通过消除所有错误来解决该错误。存储在.git / svn / .caches中的.db文件。与删除整个svn目录相比,这应该是一种更具手术性的方法。

After doing some digging, I believe you can work around the error by blowing away all of the .db files stored in .git/svn/.caches. This should be a slightly more surgical approach than blowing away the entire svn directory.

这篇关于git svn rebase导致“字节顺序不兼容”;错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆