How do I compile a daemon for CentOS 7?

applies to Scrypt, SHA-256, Quark and X11
branch 0.12+

updated July 1, 2019, 11:21 pm

Use the following instructions to compile a daemon and GUI wallet for CentOS.

Update your CentOS machine.

yum update -y

Install the EPEL repository.

yum install -y epel-release

Install the required dependencies.

yum install -y autoconf automake boost-devel gcc-c++ git libdb4-cxx libdb4-cxx-devel libevent-devel libtool openssl-devel wget nano unzip
yum install -y zeromq-devel python-devel bzip2-devel qt5-qttools-devel protobuf-devel qrencode-devel doxygen cmake3 gmp-devel bzip2

Install BLS signatures.

cd ~/
cd bls-signatures-20181101
cmake3 .
sudo make install

Install a recent version of GCC.

cd ~/
tar -xzvf gcc-9.1.0.tar.gz
cd gcc-9.1.0
./configure --disable-multilib --enable-languages=c,c++
make -j 4
sudo make install

Create a directory for the source code.

cd $HOME
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 "" -O examplecoin-source.tar.gz

Extract the tar file.

tar -xzvf examplecoin-source.tar.gz

Execute the following commands to start compiling.


The compiling will take about 60 minutes depending on your system hardware.

Your compiled GUI wallet named examplecoin-qt can be found in the folder “src/qt” when compiling is finished.
Client tools examplecoin-cl, examplecoin-tx and the daemon examplecoind can be found in the folder “src” when compiling is finished.