mscdex / node-ncurses

An ncurses binding for node.js
MIT License
386 stars 25 forks source link

Problem installing ncurses using npm #27

Closed nicolassmith closed 11 years ago

nicolassmith commented 11 years ago

I get the following errors when trying to install ncurses:

,,, CXX(target) Release/obj.target/libncurses/deps/libncurses/c++/cursesmain.o AR(target) Release/obj.target/deps/libncurses/ncurses.a CXX(target) Release/obj.target/binding/src/binding.o ../src/binding.cc:84:1: error: ‘uv_poll_t’ does not name a type ../src/binding.cc:2276:27: error: ‘uv_poll_t’ has not been declared ../src/binding.cc: In member function ‘void Window::init(int, int, int, int)’: ../src/binding.cc:491:9: error: ‘read_watcher_’ was not declared in this scope ../src/binding.cc:491:29: error: expected type-specifier before ‘uv_poll_t’ ../src/binding.cc:491:29: error: expected ‘;’ before ‘uv_poll_t’ ../src/binding.cc:493:64: error: ‘uv_poll_init’ was not declared in this scope ../src/binding.cc:494:38: error: ‘UV_READABLE’ was not declared in this scope ../src/binding.cc:494:59: error: ‘uv_poll_start’ was not declared in this scope ../src/binding.cc: In member function ‘void Window::close()’: ../src/binding.cc:675:24: error: ‘read_watcher_’ was not declared in this scope ../src/binding.cc:675:37: error: ‘uv_poll_stop’ was not declared in this scope ../src/binding.cc: In static member function ‘static void Window::io_event(int_, int, int)’: ../src/binding.cc:2282:21: error: ‘UV_READABLE’ was not declared in this scope make: *_\* [Release/obj.target/binding/src/binding.o] Error 1 make: Leaving directory `/usr/local/lib/node_modules/ncurses/build' 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/node-gyp/lib/build.js:255:23) gyp ERR! stack at ChildProcess.emit (events.js:70:17) gyp ERR! stack at maybeExit (child_process.js:360:16) gyp ERR! stack at Process.onexit (child_process.js:396:5) gyp ERR! System Linux 3.2.0-36-generic gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/ncurses gyp ERR! node -v v0.6.12 gyp ERR! node-gyp -v v0.8.3 gyp ERR! not ok npm ERR! error installing ncurses@0.3.1 npm ERR! ncurses@0.3.1 preinstall: `node-gyp rebuild` npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1 npm ERR! npm ERR! Failed at the ncurses@0.3.1 preinstall script. npm ERR! This is most likely a problem with the ncurses 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 ncurses npm ERR! There is likely additional logging output above. npm ERR! npm ERR! System Linux 3.2.0-36-generic npm ERR! command "node" "/usr/bin/npm" "install" "-g" "ncurses" npm ERR! cwd /home/nicolas npm ERR! node -v v0.6.12 npm ERR! npm -v 1.1.4 npm ERR! code ELIFECYCLE npm ERR! message ncurses@0.3.1 preinstall: `node-gyp rebuild` npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1 npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/nicolas/npm-debug.log npm not ok
mscdex commented 11 years ago

node v0.8.0+ is required actually. There was an oversight and I've fixed this in a new verison published to npm.

nicolassmith commented 11 years ago

Thanks!