Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Latest commit

 

History

History
91 lines (63 loc) · 3.55 KB

build.md

File metadata and controls

91 lines (63 loc) · 3.55 KB

Build & Install

This includes a detailed instructions for compiling. There are two main parts of the build, compiling Bitcoin Core as a static library and the Node.js bindings.

Ubuntu 14.04 (Unix/Linux)

If git is not already installed, it can be installed by running:

sudo apt-get install git
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

If Node.js v0.12 isn't installed, it can be installed using "nvm", it can be done by following the installation script at https://github.com/creationix/nvm#install-script and then install version v0.12

nvm install v0.12

To build Bitcoin Core and bindings development packages are needed:

sudo apt-get install build-essential libtool autotools-dev automake autoconf pkg-config libssl-dev

Clone the bitcore-node repository locally:

git clone https://github.com/bitpay/bitcore-node.git
cd bitcore-node

And finally run the build which will take several minutes. A script in the "bin" directory will download Bitcoin Core v0.11, apply a patch (see more info below), and compile the static library and Node.js bindings. You can start this by running:

npm install

Once everything is built, you can run bitcore-node via:

npm start

This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below).

Fedora

Later versions of Fedora (>= 22) should also work with this project. The directions for Ubuntu should generally work except the installation of system utilities and libraries is a bit different. Git is already installed and ready for use without installation.

yum install libtool automake autoconf pkgconfig openssl make gcc gcc-c++ kernel-devel openssl-devel.x86_64 patch

Mac OS X Yosemite

If Xcode is not already installed, it can be installed via the Mac App Store (will take several minutes). XCode includes "Clang", "git" and other build tools. Once Xcode is installed, you'll then need to install "xcode-select" via running in a terminal and following the prompts:

xcode-select --install

If "Homebrew" is not yet installed, it's needed to install "autoconf" and others. You can install it using the script at http://brew.sh and following the directions at https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md And then run in a terminal:

brew install autoconf automake libtool openssl pkg-config

If Node.js v0.12 and associated commands "node", "npm" and "nvm" are not already installed, you can use "nvm" by running the script at https://github.com/creationix/nvm#install-script And then run this command to install Node.js v0.12

nvm install v0.12

Clone the bitcore-node repository locally:

git clone https://github.com/bitpay/bitcore-node.git
cd bitcore-node

And finally run the build which will take several minutes. A script in the "bin" directory will download Bitcoin Core v0.11, apply a patch (see more info below), and compile the static library and Node.js bindings. You can start this by running:

npm install

Once everything is built, you can run bitcore-node via:

npm start

This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below).