From: Luis Lavena Date: 2009-11-10T04:40:11+09:00 Subject: Re: Berkeley DB BDB Install on Windows On Nov 9, 11:45 am, david wrote: > I've been scripting in Ruby (and Rails) for about two years now, but > have never gotten into the internals of the module/gem side. I've > created a Ruby script using SQLite3 which works well for small data > sets but has a performance issue when dealing with a large amount of > data. I'm hoping to try the Berkeley DB. > > To start, the environment is the following. > > Windows XP > Berkeley DB 4.8.24 > ruby  1.8.6-27 (http://rubyinstaller.org) > devkit-3.4.5r3-20090411 (http://rubyinstaller.org/addons.html) > bdb-0.6.5 > That will not work. DevKit has been prepared to work with newer RubyInstaller releases, not the old One-Click ones. That is because One-Click has been compiled with VC6 and RubyInstaller with GCC, Ruby needs to use the same compiler. Using the correct version of Ruby with the DevKit will allow you use -- with-db-dir option pointing to the root of the compiled BDB libraries (which seems you didn't extract or installed). So, first: * Get the proper Ruby and DevKit * Get BDB binaries and development dependencies * Unpack them in a directory you remember * Unpack the bdb extension * Proceed with extconf and the proper compilation options. HTH, -- Luis Lavena