Post
Topic
Board Announcements (Altcoins)
Merits 2 from 1 user
Re: [ANN][GAP] Gapcoin - Prime Gap Search - New Math Algo - CPU / GPU - Zero Premine
by
BitcoinFX
on 23/05/2020, 21:58:20 UTC
⭐ Merited by ivan1975 (2)
Tested gapcoind branch v0.9.4 which now builds perfectly on Ubuntu 18.04 LTS server ...

Terminal window - copy and paste:

Code:
sudo apt-get update && sudo apt-get dist-upgrade


Code:
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libevent-dev libboost-all-dev libgmp-dev libmpfr-dev


Berkeley DB:

Code:
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

Code:
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef  db-4.8.30.NC.tar.gz' | sha256sum -c

Code:
tar -xvf db-4.8.30.NC.tar.gz


Berkeley DB compile:

Code:
cd db-4.8.30.NC/build_unix

Code:
mkdir -p build

Code:
BDB_PREFIX=$(pwd)/build

Code:
../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX

Code:
make install

Code:
cd ../..


Gapcoind download and compile:

Code:
git clone --branch v0.9.4-gap https://github.com/gapcoin-project/gapcoin.git

Code:
cd gapcoin

Code:
git submodule init

Code:
git submodule update

Code:
./autogen.sh

Code:
./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --without-gui --without-miniupnpc --disable-tests

Code:
make


Strip gapcoind and gapcoin-cli:

Code:
cd src

Code:
strip gapcoind

Code:
strip gapcoin-cli

Code:
cd


Running Gapcoind:

Code:
cd gapcoin/src && ./gapcoind

Quote
....: To use the "-server" option, you must set a rpcpassword in the configuration file:
/root/.gapcoin/gapcoin.conf
It is recommended you use the following random password:
rpcuser=
rpcpassword=
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
.....

Copy and paste:

Quote
rpcuser=gapcoinrpc
rpcpassword=

sudo nano /root/.gapcoin/gapcoin.conf

...

New screen session:

Code:
screen -S gapcoind

Run gapcoind:

Code:
cd gapcoin/src && ./gapcoind


Crtl + A + D (to exit screen)

Code:
cd gapcoin/src && ./gapcoind getinfo

etc.,

screen -r gapcoind (returns to screen session)

 Cool

- https://youtu.be/yndq8jeSPc8