Install Avian from Source on Linux

Avian is a new cryptocurrency that is on its start. Code based on bictoin core, fees are extra low. The compilation process looks the same. This article should help you some issues, such as install Berkeley DB version 4.8.

Here it is complete process of building Avian with errors and solutions.

 

Build Avian on Devuan

1. Install necessary packages

sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python3 python3-zmq zlib1g-dev wget libcurl4-gnutls-dev bsdmainutils automake curl
git clone https://github.com/AvianNetwork/Avian
cd Avian
./autogen.sh
./configure
  configure: error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)

This error means that need to install BerkeleyDB version 4 (while most linux distributions have version 5 only). Installation of BerkeleyDB version 4.8 was described in bitcoin/core but master branch now has not that script, you can find this script in branch 0.21 of bitcoin/core.

 

2. Install BerlkeyDB 4.8 with script from bitcoin/core branch 0.21

Here it is install_db4.sh in branch 0.21: https://github.com/bitcoin/bitcoin/tree/0.21/contrib

wget https://raw.githubusercontent.com/bitcoin/bitcoin/0.21/contrib/install_…
chmod +x install_db4.sh 
./install_db4.sh /usr/local
  Installing documentation: /usr/local/db4/docs ...
    db4 build complete.
  When compiling bitcoind, run `./configure` in the following way:
    export BDB_PREFIX='/usr/local/db4'
    ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" ...

 

3. Configure Avian with Berkeleydb 4 prefix

./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --prefix=/usr/local
  configure: error: No working boost sleep implementation found.

 

4. Need to install boost

apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler git ccache

./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --prefix=/usr/local
  checking for exit in -lboost_program_options... no
  configure: error: Could not link against boost_program_options !

apt install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-iostreams-dev
  The following NEW packages will be installed:
  libboost-iostreams-dev libboost-iostreams1.74-dev libboost-program-options-dev libboost-program-options1.74-dev
  libboost-regex1.74-dev

So, here I installed boost and some other packages that might be not necessary.

 

5. Build Avian finally

./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --prefix=/usr/local
make -j8

 

6. Run Avian

./src/qt/avian-qt

It works!

 

Links

  1. Avian Official Website https://avn.networks
  2. Avian Github https://github.com/AvianNetwork/Avian
  3. Avian Exchanges https://www.coingecko.com/en/coins/avian#markets
Section
Category