Skip to content

Instantly share code, notes, and snippets.

@bitgord
Last active January 12, 2017 21:52

Revisions

  1. bitgord revised this gist Jan 12, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions setup-bitcoind
    Original file line number Diff line number Diff line change
    @@ -49,8 +49,14 @@ brew link openssl --force
    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




  2. bitgord revised this gist Jan 12, 2017. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions setup-bitcoind
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,16 @@ brew link openssl --force
    --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
    sudo make install



  3. bitgord created this gist Jan 12, 2017.
    47 changes: 47 additions & 0 deletions setup-bitcoind
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    // 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]