Building Berkeley DB and mcpp on Linux for Ice 3.6.3

This page describes how to build Berkeley DB and mcpp on Linux, 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

On a 64-bit platform, you need to create a lib64 symbolic link to the lib directory:

cd /opt/db53
ln -s lib lib64

mcpp

Git Repository

Clone the zeroc-inc/mcpp repository hosted on GitHub:

git clone https://github.com/zeroc-ice/mcpp.git

Build and Installation

Follow the instructions in README.md.