Last active
July 27, 2018 14:50
-
-
Save mjmacleod/31ad31386fcb421a7ba04948e83ace76 to your computer and use it in GitHub Desktop.
Build GuldenD on Ubuntu 14.04.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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