Build spacexpansed - SpaceXpanse/Documentation GitHub Wiki
Build spacexpansed
Follow the instructions below to build spacexpansed from source.
Update and Upgrade Ubuntu
Open a terminal and issue the following commands.
sudo apt-get update
sudo apt-get upgrade
Install Dependencies
Issue the following command to install dependencies.
sudo apt-get install git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
Install libdb4.8 (Berkeley DB)
If getting errors during compilation, change '$PWD' with your actual path.
git clone https://github.com/SpaceXpanse/rod-core-wallet
cd rod-core-wallet
chmod +x ./contrib/install_db4.sh
./contrib/install_db4.sh `pwd`
export BDB_PREFIX='$PWD/db4'
Build spacexpansed
Next, build and install spacexpansed with the commands below.
Regarding the --without-gui --without-miniupnpc, it makes spacexpansed without GUI and ability to automatically open ports on the router, but not is necessary in most cases when compiling on Ubuntu 20.XX. If you want GUI on Linux, please use Ubuntu 18.XX for now.
Regarding make -j"$(($(nproc)-1))", it's trying identify the max number of cores to use to build spacexpansed. Choose "2" or higher number to build spacexpansed faster if that's not working for you.
./autogen.sh
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" --without-gui --without-miniupnpc
make -j"$(($(nproc)-1))"
sudo make install
CONGRATULATIONS!
You just built spacexpansed!
You can now run and use:
- spacexpanse-qt
- spacexpanse-cli
- spacexpansed