conan-equal-newone / yenten

Yenten; cryptocurrency of the cpu, by the cpu, for the cpu
https://conan-equal-newone.github.io/yenten/
MIT License
41 stars 51 forks source link

how to build daemon wallet on ubuntu 16.04 for run ytn pool on yiimp #20

Open 2pay opened 6 years ago

2pay commented 6 years ago

How to build daemon wallet on ubuntu 16.04 for run ytn pool on yiimp. I am builded but can't connect to stratum.

2pay commented 6 years ago

when build on Ubuntu 16.04 it show error:

configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore)

I am found sulution to fix:

First install Berkeley DB 4.8:

wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx
make
sudo make install

Tell your system where to find db4.8

export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so

Run:

./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --with-incompatible-bdb --enable-upnp-default --without-gui --disable-tests

Run:

make