Questions tagged [berkeley-db]

Berkeley DB is part of the Oracle Berkeley DB family of products. It is a C library that links into your application, enabling SQL, key-value pair (NoSQL) and Java object data persistence. It provides C, C++, C# and Java APIs and support for many scripting languages. It's designed to be small, highly performant, reliable, available and scalable.

You can find more information about Berkeley DB in the following locations:

Product Homepage: General Product Info and Berkeley DB Product Info

Downloads

FAQ

Documentation

Primary technical discussion forums for Berkeley DB in general and specifically for Berkeley DB High Availability

493 questions
2
votes
0 answers

Examples on Berkeley-db

I need to create a simple database with just a primary key. I have been referring to "DB Reference Guide", but the examples over there are a bit confusing. Are there any good materials especially focusing on examples to create Berkeley DB using C?
user537670
  • 821
  • 6
  • 21
  • 42
2
votes
1 answer

Python cannot install package berkeleydb, FileNotFoundError on Getting requirements to build wheel

Trying to install berkeleydb package for python on Windows. Python 3.9.10 Pip 21.3.1 d:\pip install berkeleydb Collecting berkeleydb Using cached berkeleydb-18.1.5.tar.gz (430 kB) Installing build dependencies ... done Getting…
Hasse
  • 383
  • 3
  • 11
2
votes
0 answers

Berkeley db version compatibility

I’ve got a bunch of bdb files initially created by versions 3 and 4 of libdb. According to file they are of two flavors (btree and hash) and have format versions 1.85, 7 and 9. (I’m pretty sure we can ignore the 1.85 ones so I’m fine with focusing…
phg
  • 286
  • 4
  • 15
2
votes
3 answers

Berkeley DB: "make install" fails on Linux

I am trying to install Berkeley DB 18.1.40 (C++ version) on my virtual machine (Linux-Ubuntu). When I do sudo make install, I encounter the following error messages: Installing DB include files: /usr/local/BerkeleyDB.18.1/include ... Installing DB…
2
votes
1 answer

Error installing BerkeleyDB Perl module on mac

I'm having the issue reported here in a smoke test: https://www.cpantesters.org/cpan/report/7bf27c72-faf6-11e6-b513-f49332c4a644 BerkeleyDB.xs:82:2: error: db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 #error db.h is from Berkeley…
StevieD
  • 6,925
  • 2
  • 25
  • 45
2
votes
3 answers

How to read var/lib/rpm/Packages content

I have 'Packages' file in path var/lib/rpm in my Centos:8 based image. How can I read/ get 'Packages' file content As I read in some documentation that this file is of type berkeley DB.. not sure about this.
Sherein
  • 947
  • 1
  • 11
  • 23
2
votes
2 answers

Spatial index in Berkeley DB

Does Berkeley DB have a spatial index such as R-tree?
propheci
  • 97
  • 1
  • 7
2
votes
1 answer

Recover source code from BDB SVN Repository

I'm trying to recover the source code from an SVN backup which I no longer have the remote repository. This is an old project and it was using BDB as database which is no longer supported by SVN clients. The files in this backup…
Frederico
  • 91
  • 5
2
votes
2 answers

How to retrieve all the records from a Berkeley DB in Ruby

I'd like to be able to get all the key-values stored in a Berkeley DB using the Ruby bindings from http://github.com/mattbauer/bdb/tree/master but I'm not sure how to proceed. Any pointers will be appreciated. UPDATE Here's a small script that loops…
Federico Builes
  • 4,939
  • 4
  • 34
  • 48
2
votes
0 answers

Attempting to use Project Gutenberg in Python 3

I was using the Project Gutenberg API (I'm new, forgive me if this isn't actually the right term) with Python 2 just fine. But I needed to start using Python 3 for other reasons. I'm having a lot of difficulties getting Gutenberg to work with Python…
Will
  • 351
  • 4
  • 15
2
votes
1 answer

Restoring a Gramps Corrupt Database (Berkeley Database)

I have tried to transfer my Gramps DB files from one computer to another but I keep getting the below error after even trying to break the lock of the database file: Gramps has detected a problem in opening the 'environment' of the …
2
votes
1 answer

Iterate through Two Berkeley DBs

How do I iterate over two Berkeley DBs at the same time, advancing a cursor where appropriate (ex: the keys in one db is less than the other) in Perl?
syker
  • 10,912
  • 16
  • 56
  • 68
2
votes
1 answer

Accessing BDB file fails on linux using Perl

I have a program that reads a very large data file from Berkeley DB [ which is mounted on a SAN Storage ]. This works perfectly fine on a solaris machine using perl5.6.0 version. However, the same program returns fewer values read from the same file…
2
votes
2 answers

How to compile Berkeley DB 5.3.28 for MXE cross-compiler?

Has anybody a solution for building Berkeley DB for MXE's cross-compile environment? When I run my build script: #!/bin/bash MXE_PATH=/path/to/mxe db=db-5.3.28 rm -rf ./$db/build_mxe mkdir -p ./$db/build_mxe cd ./$db/build_mxe sed -i…
Demon
  • 139
  • 5
2
votes
1 answer

Berkeley Db 4 and later versions compatibility

For Berkeley db, some distro like fedora have both libdb4 and libdb(version 5), so why is this, is version 4 not compatible with future versions? Does my application need to support both versions?
fluter
  • 13,238
  • 8
  • 62
  • 100