redis / hiredis-node

Node wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
305 stars 84 forks source link

hiredis installation error #114

Closed PoonamDaxini closed 8 years ago

PoonamDaxini commented 8 years ago

.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPECHECK' (staticcast<T volatile_>(0)) = staticcast<S>(0); \ ^ ~~~~~~ ../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Localv8::Object::Localv8::Value' requested here return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object()); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

9 errors generated. make: *\ [Release/obj.target/hiredis/src/hiredis.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:100:13) gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 14.5.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis gyp ERR! node -v v5.6.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok bindings@1.2.1 node_modules/bindings -> node_modules/hiredis/node_modules/bindings npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v5.6.0 npm ERR! npm v3.6.0 npm ERR! code ELIFECYCLE

npm ERR! hiredis@0.4.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hiredis@0.4.0 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the hiredis 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 hiredis npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls hiredis npm ERR! There is likely additional logging output above.

badboy commented 8 years ago

Please post the full log.

PoonamDaxini commented 8 years ago

Full log as in you want npm-debug.log file ? Here I have pasted few lines of output generated via npm install --loglevel verbose

npm info lifecycle dtrace-provider@0.2.8~preinstall: dtrace-provider@0.2.8 npm info lifecycle bindings@1.2.1~preinstall: bindings@1.2.1 npm info lifecycle nan@1.8.4~preinstall: nan@1.8.4 npm info lifecycle hiredis@0.4.0~preinstall: hiredis@0.4.0 npm info linkStuff dtrace-provider@0.2.8 npm verb linkBins dtrace-provider@0.2.8 npm verb linkMans dtrace-provider@0.2.8 npm info linkStuff bindings@1.2.1 npm verb linkBins bindings@1.2.1 npm verb linkMans bindings@1.2.1 npm info linkStuff nan@1.8.4 npm verb linkBins nan@1.8.4 npm verb linkMans nan@1.8.4 npm info linkStuff hiredis@0.4.0 npm verb linkBins hiredis@0.4.0 npm verb linkMans hiredis@0.4.0 npm info lifecycle dtrace-provider@0.2.8~install: dtrace-provider@0.2.8

dtrace-provider@0.2.8 install /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider node-gyp rebuild

gyp info it worked if it ends with ok gyp verb cli [ '/usr/local/bin/node', gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild' ] gyp info using node-gyp@3.2.1 gyp info using node@5.6.0 | darwin | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb which failed Error: not found: python2 gyp verb which failed at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:78:19) gyp verb which failed at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:87:29) gyp verb which failed at /usr/local/lib/node_modules/npm/node_modules/which/which.js:98:16 gyp verb which failed at FSReqWrap.oncomplete (fs.js:82:15) gyp verb which failed python2 [Error: not found: python2] gyp verb check python checking for Python executable "python" in the PATH gyp verb which succeeded python /usr/bin/python gyp verb check python version /usr/bin/python -c "import platform; print(platform.python_version());" returned: "2.7.10\n" gyp verb get node dir no --target version specified, falling back to host node version: 5.6.0 gyp verb command install [ '5.6.0' ] gyp verb install input version string "5.6.0" gyp verb install installing version: 5.6.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 5.6.0 gyp verb build dir attempting to create "build" dir: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build gyp verb build dir "build" dir needed to be created? /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build/config.gypi gyp verb config.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/config.gypi gyp verb common.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /usr/bin/python gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/Poonam/.node-gyp/5.6.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/Poonam/.node-gyp/5.6.0', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /Users/Poonam/.node-gyp/5.6.0 gyp verb which succeeded for make /usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] LD_LIBRARY_PATH=/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build/Release/lib.host:/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/build/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; sh libusdt-build.sh Building libusdt for x8664 not found: gmake rm -f .gch rm -f .o rm -f libusdt.a rm -f test_usdt rm -f test_usdt32 rm -f test_usdt64 rm -f test_mem_usage gcc -O2 -arch x86_64 -c -o usdt.o usdt.c usdt.c:212:9: warning: implicit declaration of function 'usdt_dof_section_free' is invalid in C99 [-Wimplicit-function-declaration] usdt_dof_section_free(&strtab); ^ usdt.c:238:9: warning: implicit declaration of function 'usdt_dof_file_free' is invalid in C99 [-Wimplicit-function-declaration] usdt_dof_file_free(provider->file); ^ 2 warnings generated. gcc -O2 -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s gcc -O2 -arch x86_64 -c -o usdt_probe.o usdt_probe.c gcc -O2 -arch x86_64 -c -o usdt_dof.o usdt_dof.c gcc -O2 -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c rm -f libusdt.a ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o ranlib libusdt.a touch Release/obj.target/libusdt.stamp c++ '-DNODE_GYP_MODULE_NAME=DTraceProviderBindings' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include -I../libusdt -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_provider.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_provider.o ../dtrace_provider.cc In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:69:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value New(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:70:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Fire(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:87:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value New(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:88:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value AddProbe(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:89:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value RemoveProbe(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:90:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Enable(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:91:48: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Disable(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:92:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Fire(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ ../dtrace_provider.cc:23:17: error: calling a protected constructor of class 'v8::HandleScope' HandleScope scope; ^ /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:889:13: note: declared protected here V8_INLINE HandleScope() {} ^ ../dtrace_provider.cc:25:55: error: cannot initialize a parameter of type 'v8::Isolate ' with an lvalue of type 'v8::Handlev8::Value (const v8::internal::Arguments &)' Local t = FunctionTemplate::New(DTraceProvider::New); ^~~~~~~ /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:4349:16: note: passing argument to parameter 'isolate' here Isolate_ isolate, FunctionCallback callback = 0, ^ ../dtrace_provider.cc:26:58: error: 'New' is a private member of 'v8::PersistentBasev8::FunctionTemplate' constructor_template = Persistent::New(t); ^ /Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:643:23: note: declared private here V8_INLINE static T* New(Isolate* isolate, T* that); ^ ../dtrace_provider.cc:26:28: error: too few arguments to function call, expected 2, have 1; did you mean 'DTraceProbe::New'? constructor_template = Persistent::New(t); ^~~~~~ DTraceProbe::New ../dtrace_provider.h:69:34: note: 'DTraceProbe::New' declared here static v8::Handlev8::Value New(const v8::Arguments& args); ^ ../dtrace_provider.cc:27:25: error: member reference type 'Persistentv8::FunctionTemplate' is not a pointer; maybe you meant to use '.'? constructor_template->InstanceTemplate()->SetInternalFieldCount(1);


                        .
../dtrace_provider.cc:27:27: error: no member named 'InstanceTemplate' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
    constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
    ~~~~~~~~~~~~~~~~~~~~  ^
../dtrace_provider.cc:28:25: error: member reference type 'Persistentv8::FunctionTemplate' is not a pointer; maybe you meant to use '.'?
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
    ~~~~~~~~~~~~~~~~~~~~^~
                        .
../dtrace_provider.cc:28:27: error: no member named 'SetClassName' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
    ~~~~~~~~~~~~~~~~~~~~  ^
../dtrace_provider.cc:28:48: error: no member named 'NewSymbol' in 'v8::String'
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
                                       ~~~~~~~~^
../dtrace_provider.cc:30:31: error: no viable conversion from 'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate'
    NODE_SET_PROTOTYPE_METHOD(constructor_template, "addProbe", DTraceProvider::AddProbe);
                              ^~~~~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Persistentv8::FunctionTemplate' to 'const v8::Localv8::FunctionTemplate &' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate &&' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'Persistent'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S _' against 'Persistentv8::FunctionTemplate'
  V8_INLINE Local(S_ that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node.h:252:71: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
                                                                      ^
../dtrace_provider.cc:31:31: error: no viable conversion from 'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate'
    NODE_SET_PROTOTYPE_METHOD(constructor_template, "removeProbe", DTraceProvider::RemoveProbe);
                              ^~~~~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Persistentv8::FunctionTemplate' to 'const v8::Localv8::FunctionTemplate &' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate &&' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'Persistent'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S _' against 'Persistentv8::FunctionTemplate'
  V8_INLINE Local(S_ that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node.h:252:71: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
                                                                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/DTraceProviderBindings/dtrace_provider.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm verb lifecycle dtrace-provider@0.2.8~install: unsafe-perm in lifecycle true
npm verb lifecycle dtrace-provider@0.2.8~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/node_modules/.bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin
npm verb lifecycle dtrace-provider@0.2.8~install: CWD: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider
npm info lifecycle dtrace-provider@0.2.8~install: Failed to exec install script
npm WARN install:dtrace-provider@0.2.8 dtrace-provider@0.2.8 install: `node-gyp rebuild`
npm WARN install:dtrace-provider@0.2.8 Exit status 1
npm verb install:dtrace-provider@0.2.8 Error: dtrace-provider@0.2.8 install: `node-gyp rebuild`
npm verb install:dtrace-provider@0.2.8 Exit status 1
npm verb install:dtrace-provider@0.2.8     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
npm verb install:dtrace-provider@0.2.8     at emitTwo (events.js:100:13)
npm verb install:dtrace-provider@0.2.8     at EventEmitter.emit (events.js:185:7)
npm verb install:dtrace-provider@0.2.8     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb install:dtrace-provider@0.2.8     at emitTwo (events.js:100:13)
npm verb install:dtrace-provider@0.2.8     at ChildProcess.emit (events.js:185:7)
npm verb install:dtrace-provider@0.2.8     at maybeClose (internal/child_process.js:827:16)
npm verb install:dtrace-provider@0.2.8     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm info lifecycle bindings@1.2.1~install: bindings@1.2.1
npm info lifecycle nan@1.8.4~install: nan@1.8.4
npm info lifecycle hiredis@0.4.0~install: hiredis@0.4.0

> hiredis@0.4.0 install /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.2.1
gyp info using node@5.6.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:78:19)
gyp verb `which` failed     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:87:29)
gyp verb `which` failed     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:98:16
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:82:15)
gyp verb `which` failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 5.6.0
gyp verb command install [ '5.6.0' ]
gyp verb install input version string "5.6.0"
gyp verb install installing version: 5.6.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 5.6.0
gyp verb build dir attempting to create "build" dir: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build
gyp verb build dir "build" dir needed to be created? /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/config.gypi
gyp verb common.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/Poonam/.node-gyp/5.6.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/Poonam/.node-gyp/5.6.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/Poonam/.node-gyp/5.6.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
  cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c99 -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis-c/deps/hiredis/sds.o.d.raw   -c -o Release/obj.target/hiredis-c/deps/hiredis/sds.o ../deps/hiredis/sds.c
  cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c99 -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis-c/deps/hiredis/read.o.d.raw   -c -o Release/obj.target/hiredis-c/deps/hiredis/read.o ../deps/hiredis/read.c
  rm -f Release/hiredis-c.a && ./gyp-mac-tool filter-libtool libtool  -static -o Release/hiredis-c.a Release/obj.target/hiredis-c/deps/hiredis/sds.o Release/obj.target/hiredis-c/deps/hiredis/read.o
  c++ '-DNODE_GYP_MODULE_NAME=hiredis' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DBUILDING_NODE_EXTENSION' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include -I../node_modules/nan -I../deps  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis/src/hiredis.o.d.raw   -c -o Release/obj.target/hiredis/src/hiredis.o ../src/hiredis.cc
In file included from ../src/hiredis.cc:3:
In file included from ../src/reader.h:4:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char _') would lose const qualifier
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate, size_t length);
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/hiredis.cc:3:
In file included from ../src/reader.h:4:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S _' against 'v8::MaybeLocalv8::Object'
  V8_INLINE Local(S_ that)
            ^
In file included from ../src/hiredis.cc:3:
In file included from ../src/reader.h:4:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/hiredis.cc:1:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    _(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Localv8::Primitive::Localv8::Value' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/hiredis.cc:1:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Boolean _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Localv8::Boolean::Localv8::Value' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/hiredis.cc:1:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Function _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Localv8::Function::Localv8::Value' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/hiredis.cc:1:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Object _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Localv8::Object::Localv8::Value' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

```
                         ^
```

9 errors generated.
make: **\* [Release/obj.target/hiredis/src/hiredis.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm verb lifecycle hiredis@0.4.0~install: unsafe-perm in lifecycle true
npm verb lifecycle hiredis@0.4.0~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/node_modules/.bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin
npm verb lifecycle hiredis@0.4.0~install: CWD: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
npm info lifecycle hiredis@0.4.0~install: Failed to exec install script
npm verb unlock done using /Users/Poonam/.npm/_locks/staging-b502e5e3ea8fad9e.lock for /Users/Poonam/htdocs/mintoyota/api/node_modules/.staging
npm verb stack Error: hiredis@0.4.0 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
npm verb stack     at emitTwo (events.js:100:13)
npm verb stack     at EventEmitter.emit (events.js:185:7)
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb stack     at emitTwo (events.js:100:13)
npm verb stack     at ChildProcess.emit (events.js:185:7)
npm verb stack     at maybeClose (internal/child_process.js:827:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm verb pkgid hiredis@0.4.0
npm verb cwd /Users/Poonam/htdocs/mintoyota/api
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--loglevel" "verbose"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! hiredis@0.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hiredis@0.4.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hiredis 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 hiredis
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls hiredis
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Poonam/htdocs/mintoyota/api/npm-debug.log
badboy commented 8 years ago
npm ERR! hiredis@0.4.0 install: node-gyp rebuild

Please try again with hiredis 0.4.1

PoonamDaxini commented 8 years ago
make: *** [Release/obj.target/DTraceProviderBindings/dtrace_provider.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm verb lifecycle dtrace-provider@0.2.8~install: unsafe-perm in lifecycle true
npm verb lifecycle dtrace-provider@0.2.8~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider/node_modules/.bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin
npm verb lifecycle dtrace-provider@0.2.8~install: CWD: /Users/Poonam/htdocs/mintoyota/api/node_modules/dtrace-provider
npm info lifecycle dtrace-provider@0.2.8~install: Failed to exec install script
npm WARN install:dtrace-provider@0.2.8 dtrace-provider@0.2.8 install: `node-gyp rebuild`
npm WARN install:dtrace-provider@0.2.8 Exit status 1
npm verb install:dtrace-provider@0.2.8 Error: dtrace-provider@0.2.8 install: `node-gyp rebuild`
npm verb install:dtrace-provider@0.2.8 Exit status 1
npm verb install:dtrace-provider@0.2.8     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
npm verb install:dtrace-provider@0.2.8     at emitTwo (events.js:100:13)
npm verb install:dtrace-provider@0.2.8     at EventEmitter.emit (events.js:185:7)
npm verb install:dtrace-provider@0.2.8     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb install:dtrace-provider@0.2.8     at emitTwo (events.js:100:13)
npm verb install:dtrace-provider@0.2.8     at ChildProcess.emit (events.js:185:7)
npm verb install:dtrace-provider@0.2.8     at maybeClose (internal/child_process.js:827:16)
npm verb install:dtrace-provider@0.2.8     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm info lifecycle bindings@1.2.1~install: bindings@1.2.1
npm info lifecycle nan@1.8.4~install: nan@1.8.4
npm info lifecycle mv@0.0.5~install: mv@0.0.5
npm info lifecycle hiredis@0.4.1~install: hiredis@0.4.1

> hiredis@0.4.1 install /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.2.1
gyp info using node@5.6.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:78:19)
gyp verb `which` failed     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:87:29)
gyp verb `which` failed     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:98:16
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:82:15)
gyp verb `which` failed  python2 [Error: not found: python2]
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 5.6.0
gyp verb command install [ '5.6.0' ]
gyp verb install input version string "5.6.0"
gyp verb install installing version: 5.6.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 5.6.0
gyp verb build dir attempting to create "build" dir: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build
gyp verb build dir "build" dir needed to be created? /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/config.gypi
gyp verb common.gypi checking for gypi file: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/Poonam/.node-gyp/5.6.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/Poonam/.node-gyp/5.6.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/Poonam/.node-gyp/5.6.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
  cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c99 -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis-c/deps/hiredis/sds.o.d.raw   -c -o Release/obj.target/hiredis-c/deps/hiredis/sds.o ../deps/hiredis/sds.c
  cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c99 -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis-c/deps/hiredis/read.o.d.raw   -c -o Release/obj.target/hiredis-c/deps/hiredis/read.o ../deps/hiredis/read.c
  rm -f Release/hiredis-c.a && ./gyp-mac-tool filter-libtool libtool  -static -o Release/hiredis-c.a Release/obj.target/hiredis-c/deps/hiredis/sds.o Release/obj.target/hiredis-c/deps/hiredis/read.o
  c++ '-DNODE_GYP_MODULE_NAME=hiredis' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DBUILDING_NODE_EXTENSION' -I/Users/Poonam/.node-gyp/5.6.0/include/node -I/Users/Poonam/.node-gyp/5.6.0/src -I/Users/Poonam/.node-gyp/5.6.0/deps/uv/include -I/Users/Poonam/.node-gyp/5.6.0/deps/v8/include -I../node_modules/nan -I../deps  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/hiredis/src/hiredis.o.d.raw   -c -o Release/obj.target/hiredis/src/hiredis.o ../src/hiredis.cc
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/Poonam/.node-gyp/5.6.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/hiredis.cc:1:
../src/reader.h:14:23: error: unknown class name 'ObjectWrap'; did you mean 'node::ObjectWrap'?
class Reader : public Nan::ObjectWrap {
                      ^~~~~~~~~~~~~~~
                      node::ObjectWrap
/Users/Poonam/.node-gyp/5.6.0/include/node/node_object_wrap.h:10:7: note: 'node::ObjectWrap' declared here
class ObjectWrap {
      ^
In file included from ../src/hiredis.cc:1:
../src/reader.h:19:12: error: unknown type name 'NAN_MODULE_INIT'
    static NAN_MODULE_INIT(Initialize);
           ^
../src/reader.h:34:5: error: no template named 'Persistent' in namespace 'Nan'; did you mean simply 'Persistent'?
    Nan::Persistent<Value> handle[9];
    ^~~~~~~~~~~~~~~
    Persistent
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:630:45: note: 'Persistent' declared here
  template<class F1, class F2> friend class Persistent;
                                            ^
../src/hiredis.cc:6:12: error: unknown type name 'NAN_MODULE_INIT'
    static NAN_MODULE_INIT(init) {
           ^
../src/hiredis.cc:7:37: error: use of undeclared identifier 'target'
        hiredis::Reader::Initialize(target);
                                    ^
../src/hiredis.cc:8:6: error: expected ';' after top level declarator
    }
     ^
     ;
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/Poonam/.node-gyp/5.6.0/include/node/node.h:42:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/Poonam/.node-gyp/5.6.0/include/node/node.h:42:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/Poonam/.node-gyp/5.6.0/include/node/node.h:42:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/hiredis.cc:1:
In file included from ../src/reader.h:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/Poonam/.node-gyp/5.6.0/include/node/node.h:42:
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/Poonam/.node-gyp/5.6.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
15 errors generated.
make: *** [Release/obj.target/hiredis/src/hiredis.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm verb lifecycle hiredis@0.4.1~install: unsafe-perm in lifecycle true
npm verb lifecycle hiredis@0.4.1~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis/node_modules/.bin:/Users/Poonam/htdocs/mintoyota/api/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin
npm verb lifecycle hiredis@0.4.1~install: CWD: /Users/Poonam/htdocs/mintoyota/api/node_modules/hiredis
npm info lifecycle hiredis@0.4.1~install: Failed to exec install script
npm verb unlock done using /Users/Poonam/.npm/_locks/staging-b502e5e3ea8fad9e.lock for /Users/Poonam/htdocs/mintoyota/api/node_modules/.staging
mv@0.0.5 node_modules/mv -> node_modules/restify/node_modules/bunyan/node_modules/mv
npm verb stack Error: hiredis@0.4.1 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
npm verb stack     at emitTwo (events.js:100:13)
npm verb stack     at EventEmitter.emit (events.js:185:7)
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb stack     at emitTwo (events.js:100:13)
npm verb stack     at ChildProcess.emit (events.js:185:7)
npm verb stack     at maybeClose (internal/child_process.js:827:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm verb pkgid hiredis@0.4.1
npm verb cwd /Users/Poonam/htdocs/mintoyota/api
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--loglevel" "verbose"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! hiredis@0.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hiredis@0.4.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hiredis 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 hiredis
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls hiredis
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Poonam/htdocs/mintoyota/api/npm-debug.log
badboy commented 8 years ago

Please always include the full log output, otherwise I have no chance of knowing what went wrong. Also please be so kind to wrap the output in ``` (three backticks), so it's displayed properly here.

mezzatto commented 8 years ago

I am also having similar problems:

Daniels-MacBook-Pro:js danielrodrigues$ npm install hiredis
npm WARN package.json mandela@1.0.0 No description
npm WARN package.json mandela@1.0.0 No repository field.
npm WARN package.json mandela@1.0.0 No README data
\
> hiredis@0.4.1 install /Users/danielrodrigues/dev/mandela/js/node_modules/hiredis
> node-gyp rebuild

  CC(target) Release/obj.target/hiredis-c/deps/hiredis/sds.o
  CC(target) Release/obj.target/hiredis-c/deps/hiredis/read.o
  LIBTOOL-STATIC Release/hiredis-c.a
Usage: /usr/local/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
make: *** [Release/hiredis-c.a] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/Cellar/node/5.6.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/danielrodrigues/dev/mandela/js/node_modules/hiredis
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok 
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/Cellar/node/5.6.0/bin/node" "/usr/local/bin/npm" "install" "hiredis"
npm ERR! node v5.6.0
npm ERR! npm  v2.14.21
npm ERR! code ELIFECYCLE

npm ERR! hiredis@0.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hiredis@0.4.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the hiredis 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 hiredis
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls hiredis
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/danielrodrigues/dev/mandela/js/npm-debug.log

npm-debug.zip

badboy commented 8 years ago

@mezzatto: That's a completely different error.

libtool:   error: unrecognised option: '-static'

Seems you're using the wrong libtool. Afaik you have to use the one shipped by Apple, not the GNU version. Either remove the wrong libtool or make sure npm finds the correct one first.

badboy commented 8 years ago

@PoonamDaxini: The only thing I could find regarding the error messages you see is that it is using an old version of nan.

npm info lifecycle nan@1.8.4~install: nan@1.8.4

This indicates it's used somewhere. It could cause the above error (no idea why it wouldn't respect the version requirements for hiredis-node). Can you check if any other dependency explicitely needs that version (or even your own project)?

PoonamDaxini commented 8 years ago

@badboy I changed the node version from5.6 to 0.10.* and now its working Thank You for your help

badboy commented 8 years ago

o_O Well, that's obviously not an improvement. You went back to a pretty old node version?