DBM files portable?

H

Hal Fulton

Question: I thought that files created by the dbm library
were pretty portable?

My app created a .db file (Ruby 1.8.2, Red Hat FC1) and I
gave it to a couple of people.

Tried it on OSX and it didn't seem to work. Not a gigantic
surprise perhaps.

Tried it on Gentoo also and it still didn't seem to work. :/
This surprised me a little more.

Is this sensitive to OS versions, Ruby versions, or what?


Thanks,
Hal
 
F

Florian Frank

Is this sensitive to OS versions, Ruby versions, or what?

On second reading, perhaps dbm versions differ. You could
$ file data.db
and look on the result and compare it to
$ ldd $PATH/dbm.so

file seems to show endianess, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top