RHEL7 / Centos7

Dependencies

Update the system:

sudo yum update -y

Add Epel-Release repository:

sudo yum install epel-release -y

Add a SWAP file:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
sudo echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Reboot the server to load a new kernel (if) there are new one.

sudo reboot

We need a bunch of building tools, dependencies & libs:

sudo yum groupinstall 'Development Tools' -y
sudo yum install git boost boost-devel autoconf automake gcc-c++ -y
sudo yum install libtool libdb-cxx-devel-5.3.21-24.el7.x86_64 -y
sudo yum install openssl openssl-devel libevent libevent-devel -y

Copy line-by-line to the terminal. Not all commands at once.

If we want to build GUI wallet we need extra packages (Optional):

sudo yum install zeromq-4.1.4-6.el7.x86_64 qt5-qttools-devel-5.9.2-1.el7.x86_64  -y
sudo yum install protobuf-devel-2.5.0-8.el7.x86_64 qt5-qtbase-devel -y

Make sure not to mix libdb packages one version with another. Remove libdb4.8* if you have libdb5*

rpm -qa | grep libdb

The output should consist only libdb4* or libdb5* - not both. It depends on your version. Desktop or Minimal.

 

Getting the adeptio source code

Official adeptio github repository - https://github.com/adeptio-project/adeptio/ 

Master branch:

cd ~/
git clone https://github.com/adeptio-project/adeptio.git
cd adeptio

 

Building the wallet

./autogen.sh
./configure --with-incompatible-bdb
make

You can use make -j {CPU Core count} in order to make building faster. For example with 2 CPU Cores: make -j 2

It's OK to ignore "warning" signs during building process

 

Strip the binary to reduce the size (Optional)

After successful build in order to minimize the adeptiod / adeptio-cli / adeptio-tx / adeptio-qt binary size we can use stripping method:

strip ./src/adeptiod ; strip ./src/adeptio-cli ; strip ./src/adeptio-tx

If you building with GUI wallet:

strip ./src/qt/adeptio-qt

Need additional help? Go to Discord and ask for help.


Revision #16
Created 4 months ago by roothere
Updated 2 months ago by roothere