Skip to content

Latest commit

 

History

History
183 lines (151 loc) · 3.05 KB

build-ubuntu.md

File metadata and controls

183 lines (151 loc) · 3.05 KB

Build instructions for Ravencoin

This will install most of the dependencies from ubuntu. The only one we build, is Berkeley DB 4.8.

Ubuntu 21.10 - Impish Indri - Install dependencies:

$ sudo apt install build-essential libssl-dev libboost-chrono1.74-dev libboost-filesystem1.74-dev libboost-program-options1.74-dev libboost-system1.74-dev libboost-thread1.74-dev libboost-test1.74-dev qtbase5-dev qttools5-dev bison libexpat1-dev libdbus-1-dev libfontconfig-dev libfreetype-dev libice-dev libsm-dev libx11-dev libxau-dev libxext-dev libevent-dev libxcb1-dev libxkbcommon-dev libminiupnpc-dev libprotobuf-dev libqrencode-dev xcb-proto x11proto-xext-dev x11proto-dev xtrans-dev zlib1g-dev libczmq-dev autoconf automake libtool protobuf-compiler

Ubuntu 21.04 - Hirsute Hippo - Install dependencies:

$ sudo apt install build-essential libssl-dev libboost-chrono1.71-dev libboost-filesystem1.71-dev libboost-program-options1.71-dev libboost-system1.71-dev libboost-thread1.71-dev libboost-test1.71-dev qtbase5-dev qttools5-dev bison libexpat1-dev libdbus-1-dev libfontconfig-dev libfreetype-dev libice-dev libsm-dev libx11-dev libxau-dev libxext-dev libevent-dev libxcb1-dev libxkbcommon-dev libminiupnpc-dev libprotobuf-dev libqrencode-dev xcb-proto x11proto-xext-dev x11proto-dev xtrans-dev zlib1g-dev libczmq-dev autoconf automake libtool protobuf-compiler

Ubuntu 18.04 - Bionic Beaver - Install dependencies:

$ sudo apt install build-essential libssl-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-test-dev qtbase5-dev qttools5-dev bison libexpat1-dev libdbus-1-dev libfontconfig-dev libfreetype6-dev libice-dev libsm-dev libx11-dev libxau-dev libxext-dev libevent-dev libxcb1-dev libxkbcommon-dev libminiupnpc-dev libprotobuf-dev libqrencode-dev xcb-proto x11proto-xext-dev x11proto-dev xtrans-dev zlib1g-dev libczmq-dev autoconf automake libtool protobuf-compiler

Directory structure

Ravencoin sources in $HOME/src

Berkeley DB will be installed to $HOME/src/db4

Ravencoin

Start in $HOME

Make the directory for sources and go into it.

mkdir src

cd src

Download Ravencoin source.

git clone https://github.com/RavenProject/Ravencoin

cd Ravencoin

git checkout develop # this checks out the develop branch.

Download and build Berkeley DB 4.8

contrib/install_db4.sh ../

The build process:

./autogen.sh

export BDB_PREFIX=$HOME/src/db4

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

Adjust to own needs. This will install the binaries to /usr/local/bin

make -j8 # 8 for 8 build threads, adjust to fit your setup.

You can now start raven-qt from the build directory.

src/qt/raven-qt

ravend and raven-cli are in src/

Optional:

sudo make install # if you want to install the binaries to /usr/local/bin (if this prefix was used above).