Bitcore install build fails Mac OS X


(D ) #1

Having troubles with installing Bitcore globally
I followed the install instructions carefully.

Following the expanded guide for running ‘nvm use 4’ and
brew install zeromq, still results in a failed build.

Using Mac OS X 10.14.3

Any help or input will greatly be appreciated.

Terminal Error Message down below =======================================================

Supers-MBP:~ Ghost$ npm install -g bitcore
npm WARN engine har-validator@5.1.3: wanted: {“node”:">=6"} (current: {“node”:“4.9.1”,“npm”:“2.15.11”})
npm WARN engine punycode@2.1.1: wanted: {“node”:">=6"} (current: {“node”:“4.9.1”,“npm”:“2.15.11”})

bitcore-node@3.1.3 preinstall /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node
./scripts/download

Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/bitcoin-0.12.1-osx64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 2923 0 --:–:-- --:–:-- --:–:-- 2938
100 18.8M 100 18.8M 0 0 8124k 0 0:00:02 0:00:02 --:–:-- 10.4M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 604 0 604 0 0 2300 0 --:–:-- --:–:-- --:–:-- 2305
100 1154 100 1154 0 0 2390 0 --:–:-- --:–:-- --:–:-- 2390
Unpacking bitcoin distribution
x bitcoin-0.12.1/
x bitcoin-0.12.1/bin/
x bitcoin-0.12.1/bin/bitcoin-cli
x bitcoin-0.12.1/bin/bitcoind
x bitcoin-0.12.1/bin/bitcoin-qt
x bitcoin-0.12.1/bin/bitcoin-tx
x bitcoin-0.12.1/bin/test_bitcoin
x bitcoin-0.12.1/bin/wallet-utility
x bitcoin-0.12.1/include/
x bitcoin-0.12.1/include/bitcoinconsensus.h
x bitcoin-0.12.1/lib/
x bitcoin-0.12.1/lib/libbitcoinconsensus.0.dylib
x bitcoin-0.12.1/lib/libbitcoinconsensus.dylib

utf-8-validate@1.2.2 install /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/utf-8-validate
node-gyp rebuild

CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node

bufferutil@1.2.1 install /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil
node-gyp rebuild

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
warning: include path for stdlibc++ headers not found; pass ‘-std=libc++’ on the command line to use the libc++ standard library instead
[-Wstdlibcxx-not-found]
In file included from …/src/bufferutil.cc:16:
…/node_modules/nan/nan.h:56:10: fatal error: ‘algorithm’ file not found
#include
^~~~~~~~~~~
1 warning and 1 error generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command “/Users/Ghost/.nvm/versions/node/v4.9.1/bin/node” “/Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/bufferutil
gyp ERR! node -v v4.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

zmq@2.15.3 install /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq
node-gyp rebuild

CXX(target) Release/obj.target/zmq/binding.o
warning: include path for stdlibc++ headers not found; pass ‘-std=libc++’ on the command line to use the libc++ standard library instead
[-Wstdlibcxx-not-found]
In file included from …/binding.cc:29:
/usr/local/Cellar/zeromq/4.3.1_1/include/zmq_utils.h:42:32: warning: unknown warning group ‘-Werror’, ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored “-Werror”
^
/usr/local/Cellar/zeromq/4.3.1_1/include/zmq_utils.h:45:9: warning: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.
[-W#pragma-messages]
#pragma message(
^
…/binding.cc:36:10: fatal error: ‘stdexcept’ file not found
#include
^~~~~~~~~~~
3 warnings and 1 error generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command “/Users/Ghost/.nvm/versions/node/v4.9.1/bin/node” “/Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /Users/Ghost/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/bitcore-node/node_modules/zmq
gyp ERR! node -v v4.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil@1.2.1
npm ERR! Darwin 18.2.0
npm ERR! argv “/Users/Ghost/.nvm/versions/node/v4.9.1/bin/node” “/Users/Ghost/.nvm/versions/node/v4.9.1/bin/npm” “install” “-g” “bitcore”
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE

npm ERR! zmq@2.15.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs zmq
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Ghost/npm-debug.log