Install Berkeley DB on Linux for Cryptocurrency

This blog is part of the course on how to create your own Cryptocurrency. Berkeley DB is an important dependency while building your coin. The below article will help you to Install Berkeley DB on Linux, your ubuntu server for coin building. If you want to understand the complete process of coin building, please go to this of How to create Cryptocurrency if you are not already enrolled. To Enroll directly on the course, please visit this link Create Own Cryptocurrency.

Step by Step Guide to Install Berkeley DB on Linux Ubuntu Operating System

Step 1: Make Sure you are in the home directory; if not, please execute the below command

cd ~

Step 2: Update the system and then install the essential components using the below commands

sudo apt-get update  

sudo apt-get install build-essential

sudo apt-get install autoconf libtool pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libqt4-dev libcanberra-gtk-module libdb++-dev

Step 3: Download the source code of Berkeley DB


Step 4: Unzip the file

tar -xvf db-4.8.30.NC.tar.gz

Step 5: Change and enter the build directory

cd db-4.8.30.NC/build_unix

Step 6: Create the Build Directory and set the environment Variable

mkdir -p build

Step 7: Setup the configuration

../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX

Step 8: Now execute the final installation command

sudo make install

About The Author