Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Build GuldenD on Ubuntu 16.04.4 (Tested on a clean 16.0.4.4 VM)
# Install build requirements
# The below will install various new packages on your system
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
sudo apt-get install libssl-dev libevent-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python-dev libxml2-dev libxslt-dev libbz2-dev git software-properties-common curl
# The below will install gcc-7.3 on your system
# Do not do this on a system where you may need to compile other software relying on older GCC
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
# Only do this if you know what you are doing or are using a VM/Machine that is dedicated for the purpose of building Gulden
sudo add-apt-repository -y ppa:jonathonf/gcc
sudo apt-get update
sudo apt-get install gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 100 --slave /usr/bin/g++ g++ /usr/bin/g++-7
# Fresh clone of repository
git clone https://github.com/Gulden/gulden-official.git
cd gulden-official/
# If old clone of repository make sure to fetch latest
git pull origin
# Build dependencies
cd depends
make NO_QT=1 NO_UPNP=1
cd ..
# Generate configure
./autogen.sh
# Always best practice to configure and build in a sub directory
mkdir build && cd build
../configure --prefix=$PWD/../depends/x86_64-pc-linux-gnu/
# Build - manually substitute nproc for number of processes if necessary
make -j$(nproc)
# Done, you can now run GuldenD from within the build directory
./src/GuldenD --version
# Or copy it somewhere more appropriate and then run from path
cp GuldenD /usr/bin/GuldenD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.