From: ts Date: 2004-08-21T00:31:17+09:00 Subject: Re: compiling bdb >>>>> "A" == Ara T Howard writes: A> i don't like the sound of that - i think i should compile bdb without pthread A> (i compiled 4.2). hopefully that isn't too hard to figure out... I don't understand : do you have compiled db-4.2 with pthread ? 1) yes : ruby must be compiled with pthread and you'll have the right flag here an example with an old 1.8.1 svg% ruby -rrbconfig -e 'p Config::CONFIG["LIBS"]' "-lpthread -ldl -lcrypt -lm " svg% svg% cat src/mkmf.log have_library: checking for db_version() in -ldb-4.2... -------------------- yes "gcc -o conftest -I/home/ts/local/rp/lib/ruby/1.8/i686-linux -I/home/ts/local/rp/lib/ruby/1.8/i686-linux -I/home/ts/local/db4.2.52/include -g -O2 conftest.c -L"/home/ts/local/rp/lib" -L"/home/ts/local/db4.2.52/lib" -lruby-static -ldb-4.2 -lpthread -ldl -lcrypt -lm -lc" checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { db_version(); return 0; } /* end */ -------------------- svg% 2) no : you don't need to do nothing svg% ruby -rrbconfig -e 'p Config::CONFIG["LIBS"]' "-ldl -lcrypt -lm " svg% svg% cat src/mkmf.log have_library: checking for db_version() in -ldb-4.2... -------------------- yes "gcc -o conftest -I/home/ts/ruby/db/bdb-0.5.1/src -I/home/ts/local/r182/lib/ruby/1.8/i686-linux -I/home/ts/local/db4.2.52/include -g -O2 conftest.c -L"/home/ts/local/db4.2.52/lib" -L"/home/ts/local/r182/lib" -lruby-static -ldb-4.2 -ldl -lcrypt -lm -lc" checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { db_version(); return 0; } /* end */ -------------------- svg% Guy Decoux