Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
On Solaris w/ Perl 5.00503 I have a Berkeley DB database. The "values" in the database are structures saved with Storable::nfreeze.

I need to move that to Linux running 5.8.0 and a newer version of Berkeley DB.

I moved the file and then run:

$ db_dump foo.old | db4.0_load foo.new
But when I try to thaw the data I'm still getting:

Byte order is not compatible at ../../lib/Storable.pm (autosplit into +../../lib/auto/Storable/thaw.al) line 358.
I was able to move another Berkeley DB table without problems (that table's values were plain text).

I suppose I can figure out another way to move the data, but I'm also wondering what I'm doing wrong. Well, for one thing I was not able to easily find the Changelog for Storable to see if there was something broken with nfreeze. And my googling for that error message just turned up suggestions to use nfreeze or nstore (but I'm already using nfreeze).


In reply to Storable: Byte order is not compatible by moseley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-01-25 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?