[0.8] How do I compile a daemon for Ubuntu Server 18.04?

applies to Scrypt, Scrypt PoW/PoS and SHA-256
branch 0.8

updated July 30, 2019, 3:57 pm

Use the following instructions to compile a daemon for Ubuntu Server 18.04.

Update your Ubuntu machine.

sudo apt-get update
sudo apt-get upgrade

Install the required dependencies.

sudo apt-get install build-essential libdb-dev libdb++-dev libboost-all-dev git libssl1.0-dev
sudo apt-get install libdb-dev libdb++-dev libboost-all-dev libminiupnpc-dev libevent-dev libcrypto++-dev libgmp3-dev

Create a directory for the source code.

mkdir source_code
cd source_code

Note: replace “examplecoin” with the name of your coin.
Note: replace “6gs39011kick8xmqutpkrvi92xx5kwev4ykanlv1ls0ouuae5x” with the coinID of your coin.

Download the source code from MyCoin. (Available for a paid coin)

wget "https://dl.walletbuilders.com/download?customer=6gs39011kick8xmqutpkrvi92xx5kwev4ykanlv1ls0ouuae5x&filename=examplecoin-source.tar.gz" -O examplecoin-source.tar.gz

Extract the tar file.

tar -xzvf examplecoin-source.tar.gz

Go to the src directory of your source code.

cd src

Execute the following command to compile the daemon.

make -f makefile.unix RELEASE=1

The compiling will take about 30 minutes depending on your system.

Your compiled daemon named examplecoind can be found in the folder “src” when compiling is finished.