Install BerkeleyDB for Cryptocurrency

Install BerkeleyDB for Cryptocurrency

This blog is the part of the course on how to create your own Cryptocurrency. BerkeleyDB is the important dependencies while building your coin. The below article will help you to Install BerkeleyDB in 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 for the course please visit this link Create Own Cryptocurrency

Step by Step Guide to Install BerkeleyDB 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 BerkeleyDB


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