README.md changed: no --with-db -option

This commit is contained in:
Denis Knauf 2010-03-28 17:23:40 +02:00
parent d00f64ab69
commit b4e242ffe5

View file

@ -1,15 +1,7 @@
Description Description
=== ===
Ruby bindings for Berkeley DB versions 4.2-4.7. Ruby bindings for Berkeley DB versions 4.2-4.8.
Download
========
Currently this library is available via git at:
git://github.com/DenisKnauf/bdb.git
Installation Installation
============ ============
@ -25,21 +17,19 @@ As a Gem
======== ========
At the moment this library is not available on Rubyforge. To install it as a At the moment this library is not available on Rubyforge. To install it as a
gem, do the following (for custom compiled version 4.8): gem, do the following:
wget http://github.com/downloads/DenisKnauf/bdb/bdb-VERSION.gem sudo gem install dk-bdb
sudo env ARCHFLAGS="-arch i386" gem install bdb-VERSION.gem -- --with-db-dir=/usr/local/BerkeleyDB.4.8
For Berkeley DB v4.7 installed from MacPorts do the following: For Berkeley DB v4.7 installed from MacPorts do the following:
sudo env ARCHFLAGS="-arch i386" gem install bdb-VERSION.gem -- --with-db-include=/opt/local/include/db47 --with-db-lib=/opt/local/lib/db47 sudo env ARCHFLAGS="-arch i386" gem install dk-bdb
This assumes you're on OS X and BerkeleyDB wasn't compiled as a universal binary. This assumes you're on OS X and BerkeleyDB wasn't compiled as a universal binary.
Sample Usage Sample Usage
============ ============
env = Bdb::Env.new(0) env = Bdb::Env.new(0)
env_flags = Bdb::DB_CREATE | # Create the environment if it does not already exist. env_flags = Bdb::DB_CREATE | # Create the environment if it does not already exist.
Bdb::DB_INIT_TXN | # Initialize transactions Bdb::DB_INIT_TXN | # Initialize transactions