redis / hiredis-node

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

Can't install hiredis #54

Closed yangshun closed 10 years ago

yangshun commented 10 years ago
> hiredis@0.1.16 install /usr/local/lib/node_modules/hiredis
> node-gyp rebuild

  CC(target) Release/obj.target/hiredis/deps/hiredis/hiredis.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/net.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/sds.o
  CC(target) Release/obj.target/hiredis/deps/hiredis/async.o
  LIBTOOL-STATIC Release/hiredis.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make: *** [Release/hiredis.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:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/hiredis
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! hiredis@0.1.16 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hiredis@0.1.16 install script.
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 their info via:
npm ERR!     npm owner ls hiredis
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "hiredis"
npm ERR! cwd /Users/YangShun/Developer/codecombat/coco
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/YangShun/Developer/codecombat/coco/npm-debug.log
npm ERR! not ok code 0
evereq commented 10 years ago

Well, got same issue today on OS X 10.9.2, node 0.10.26, npm 1.4.3

mritzco commented 10 years ago

I was getting a similar problem on mint, the problem was the compiler (GCC). It was fixed by installing:

sudo apt-get build-essentials

Check if you have what's needed for your OS

cpanato commented 10 years ago

same here

9874 verbose lock optimist@0.3.7 /home/tadeu/.npm/090e1d8d-optimist-0-3-7.lock 9875 info hiredis@0.1.16 Failed to exec install script 9876 info /home/tadeu/projects/onsite-server/node_modules/hiredis unbuild 9877 info preuninstall hiredis@0.1.16 9878 verbose unsafe-perm in lifecycle true 9879 info uninstall hiredis@0.1.16 9880 verbose true,/home/tadeu/projects/onsite-server/node_modules,/home/tadeu/projects/onsite-server/node_modules unbuild hiredis@0.1.16 9881 info postuninstall hiredis@0.1.16 9882 error hiredis@0.1.16 install: node-gyp rebuild 9882 error Exit status 1 9883 error Failed at the hiredis@0.1.16 install script. 9883 error This is most likely a problem with the hiredis package, 9883 error not with npm itself. 9883 error Tell the author that this fails on your system: 9883 error node-gyp rebuild 9883 error You can get their info via: 9883 error npm owner ls hiredis 9883 error There is likely additional logging output above. 9884 error System Linux 3.11.0-18-generic 9885 error command "node" "/usr/local/bin/npm" "install" 9886 error cwd /home/tadeu/projects/onsite-server 9887 error node -v v0.10.26 9888 error npm -v 1.4.4 9889 error code ELIFECYCLE 9890 verbose exit [ 1, true ]

pietern commented 10 years ago

Please see issue #31. It looks like you're using GNU libtool on OSX, which is not expected.