Skip to content

Instantly share code, notes, and snippets.

@bitgord
Last active January 12, 2017 21:52
Show Gist options
  • Save bitgord/88547c580139d7629dd103ec923adc0a to your computer and use it in GitHub Desktop.
Save bitgord/88547c580139d7629dd103ec923adc0a to your computer and use it in GitHub Desktop.
Quick setup of bitcoin-d
// Clone the repo into your terminal
git clone https://github.com/bitcoin/bitcoin.git
// Change directory into the new folder
cd bitcoin
// Checkout the versions
git tag
// Read the docs in the ReadME and read the build docs
more doc/build-unix.md // for linux
more doc/build-osc.md // for mac
// Install dependencies
sudo port install boost db48@+no_java openssl miniupnpc autoconf pkgconfig automake
// Update homebrew
brew install autoconf automake berkeley-db4 boost miniupnpc openssl pkg-config protobuf
// After you have installed the dependencies, you should check that the Homebrew installed OpenSSL
openssl version
// If it hasnt been installed correctly you can force a connection with
brew link openssl --force
// You can start the build process by generating a set of build scripts
// If this is done correctly it should create a set of configuration scripts that will interrogate your system
// to discover the correct settings and ensure you have all the necessary libraries to compile the code
./autogen.sh
// The most important script that offers many customizations to the build process
// Check the customizations that are possible
./configure --help
// Usage
// To assign a variable specify them as VAR=VALUE
// Some useful configurations
--version // displays version information
--disable-FEATURE // do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] // include FEATURE [ARG=yes]
// Run the configuration script to automatically discover all the necessary libraries
// If all goes well this creates a customized build script for your operating system
./configure
// Start the compilation process
// If this returns with no errors bitcoind has been compiled
make
// The final step is to install the bitcoind executable into the system path
// You need to put in your password for this
sudo make install
// You can confirm that everyhting is downloaded correctly bt checking for the following two paths
// Both should return a valid path // The default installation put it in /usr/local/bin
which bitcoind
which bitcoind-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment