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 ~/
wget https://github.com/codablock/bls-signatures/archive/v20181101.zip
unzip v20181101.zip
cd bls-signatures-20181101
cmake3 .
sudo make install

Install a recent version of GCC.

cd ~/
wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-9.1.0/gcc-9.1.0.tar.gz
tar -xzvf gcc-9.1.0.tar.gz
cd gcc-9.1.0
./contrib/download_prerequisites
./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 "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

Execute the following commands to start compiling.

./autogen.sh
./configure
make

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.

Share