Skip to content

Linux build notes v.1.7 on Ubuntu 22.0

Lennart Lopin edited this page Feb 18, 2024 · 4 revisions

Build Marscoin for Linux (Full Build including QT GUI) using Ubuntu 22

Using Ubuntu 22 LTS 64bit

Supports OpenSSL v.1.1.1 and Boost v.1.71+

1. Update OS

sudo apt-get update
sudo apt-get upgrade

2. Set up Build Environment

Set up core Linux tools

sudo apt-get install git build-essential pkg-config autoconf automake libtool libboost-all-dev libssl-dev

3. Checkout the Marscoin repo

git clone https://github.com/marscoin/marscoin.git
cd ./marscoin

4. Switch to the latest Marscoin version

git checkout master-1.7

5. Build Marscoin!

./autogen.sh
./configure
make

This will build the marscoind node, the marscoin-cli command line interface and marscoin-tx.

(Optional) Build DB4 Dependency

wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
make install

This installs DB4's lib in /usr/local/lib and headers in / usr/local/includes. You can also use this script to install DB4.

(Optional) unival build issue

Enter the /src/unival folder and build manually

$ ./autogen.sh
$ ./configure
$ make

(Optional) compile error: secp256k1_recovery.h: file not found

Install secp256k1 in subdirectory (/src/secp256k1) with:

$ ./autogen.sh
$ ./configure --enable-module-recovery
$ make
$ make check
$ sudo make install

Clone this wiki locally