|
What is Aruna DB? |
Aruna DB FAQ:
Q: I get the following error when running with Ruby 1.6.5 or 1.6.6:
ruby: relocation error: /usr/lib/ruby/1.6/aruna.so: undefined symbol: rb_marshal_dump
A: Aruna relies on two c functions that were added to Ruby after 1.6. As a short-term fix, you can add the following declarations to aruna.h:
VALUE rb_marshal_dump _((VALUE, VALUE));
VALUE rb_marshal_load _((VALUE));
Next add the following functions to the very end of marshal.c:
VALUE
rb_marshal_dump(obj, port)
VALUE obj, port;
{
int argc = 1;
VALUE argv[2];
argv[0] = obj;
argv[1] = port;
if (!NIL_P(port)) argc = 2;
return marshal_dump(argc, argv);
}
VALUE
rb_marshal_load(port)
VALUE port;
{
return marshal_load(1, &port);
}
Re-make and re-install ruby 1.6.5 .
Cd to aruna/ruby_ext and re-make and re-install aruna.