can someone help me compiling netcoin on linux from source?
i think i have a problem with libdb (Oracle Berkeley DB ) ...
when i install libdb version 5, then many altcoins consume a very high cpu usage..
installing libdb version 4 reduces that.. but then other problems appear..
downloading blocks works..
/usr/bin/netcoind getinfo
{
"version" : "v2.3.1.0",
"protocolversion" : 70001,
"walletversion" : 60000,
"balance" : 0.00000000,
"newmint" : 0.00000000,
"stake" : 0.00000000,
"blocks" : 500,
"timeoffset" : 0,
"moneysupply" : 2918400.00000000,
"connections" : 3,
"proxy" : "",
"ip" : "146.0.32.101",
"difficulty" : {
"proof-of-work" : 0.08773633,
"proof-of-stake" : 0.00024414
},
"testnet" : false,
"keypoololdest" : 1450036928,
"keypoolsize" : 101,
"paytxfee" : 0.00000000,
"mininput" : 0.00010000,
"errors" : ""
}
but then suddenly:
************************
EXCEPTION: St13runtime_error
CDB() : can't open database file wallet.dat, error 22
netcoin in ProcessMessages()
getinfo
error: {"code":-1,"message":"CDB() : can't open database file wallet.dat, error 2"}
then i have do delete all the .dat files in .netcoin and restart.. so i can not use it..
for other coins there is this workaround:
BITCOIN_ROOT=$(pwd)
BDB_PREFIX="${BITCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX
wget '
http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install
cd $BITCOIN_ROOT
./autogen.sh
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" --with-gui=no
most coins need db4 .. i only know dogecoin which uses db5 (
http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz )
but i don't really know how to inculde this in a Makefile like netcoin? this does not really help..