Installing Quorum and constellation

Now we are quite confident about the Quorum's consensus protocols, Ethereum accounts, transactions, and private contracts. It's time to build a Quorum network. Before that, we need to learn how to install Quorum and constellation. Remember that constellation is optional and should only be integrated in the Quorum network if private contracts are required.

The best way to install Quorum and constellation is to build the source code. In this book, we will concentrate on steps for Ubuntu and macOS only. You can find Quorum's source code at https://github.com/jpmorganchase/quorum , whereas you can find constellation source code at https://github.com/jpmorganchase/constellation.

Following are the three basic commands to build Quorum from source code:

git clone https://github.com/jpmorganchase/quorum.git
cd quorum
make all

Now, go into the build/bin/ directory and you will find the geth executable, which is the node software for running the Quorum node. Also, you will find another executable file named bootnode, and we will use this to generate the enode ID only. We will see later what an enode ID is.

To install constellation, you need a few prerequisites. In Ubuntu, run the following commands to install the prerequisites:

apt-get install libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev
curl -sSL https://get.haskellstack.org/ | sh
stack setup

And, in macOS, run the following commands to install the prerequisites:


brew install berkeley-db leveldb libsodium
brew install haskell-stack
stack setup

Now, to install constellation, run the following commands:

git clone https://github.com/jpmorganchase/constellation.git
cd constellation
stack install

Now, after you run they preceding commands and they are executed successfully, you will get a message stating the path of the constellation-node executable. Move the executable from that path to a place where you can find it easily.