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 home directory if not please execute below command


cd ~

Step 2: Update the system and then install the essentials components using 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


wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

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
BDB_PREFIX=$(pwd)/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
Facebook Comments
(Visited 34 times, 1 visits today)

Leave A Comment

Your email address will not be published. Required fields are marked *