Building Berkeley DB on macOS for Ice 3.6.3
This page describes how to build Berkeley DB on macOS for use with Ice.
On this page:
Berkeley DB
Source Archive
Download the Berkeley DB 5.3.28 source archive from Oracle or ZeroC. You may use the distribution with encryption or without encryption. Since Ice does not use Berkeley DB's encryption features, we recommend downloading the no-encryption (-NC) source archive:
wget https://zeroc.com/download/berkeley-db/db-5.3.28.NC.tar.gz
Then unpack this archive:
tar xzf db-5.3.28.NC.tar.gz
Patch
Download the following patch: https://zeroc.com/download/berkeley-db/berkeley-db.5.3.28.patch
Apply this patch from the main directory of the berkeley-db source distribution:
cd db-5.3.28.NC patch -p0 < <path to patch>/berkeley-db.5.3.28.patch
Configuration
Berkeley DB must be configured with C++ support enabled. If you intend to use Ice for Java with Berkeley DB, you must also enable Java support. For example:
cd db-5.3.28.NC/build_unix ../dist/configure --enable-cxx --enable-java --prefix=/opt/db53
Build and Installation
You can now build and install Berkeley DB as follows:
make ... sudo make install