mscdex / node-ncurses

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

NPM install on Mac OSX Lion fails #12

Closed ghost closed 12 years ago

ghost commented 12 years ago

Node version: 0.6.2 NPM version: 1.0.105

Installation fails with the following output:

[1/2] cxx: ncurses.cc -> build/Release/ncurses_1.o
../ncurses.cc:16:25: error: node_events.h: No such file or directory
../ncurses.cc:309: error: expected class-name before ‘{’ token
../ncurses.cc: In static member function ‘static void Window::Initialize(v8::Handle<v8::Object>)’:
../ncurses.cc:316: error: ‘EventEmitter’ has not been declared
../ncurses.cc: In member function ‘void Window::close()’:
../ncurses.cc:629: error: ‘Unref’ was not declared in this scope
../ncurses.cc: In static member function ‘static v8::Handle<v8::Value> Window::New(const v8::Arguments&)’:
../ncurses.cc:666: error: ‘class Window’ has no member named ‘Wrap’
../ncurses.cc:668: error: ‘class Window’ has no member named ‘Ref’
../ncurses.cc: In constructor ‘Window::Window()’:
../ncurses.cc:2067: error: class ‘Window’ does not have any field named ‘EventEmitter’
../ncurses.cc: In constructor ‘Window::Window(int, int, int, int)’:
../ncurses.cc:2073: error: class ‘Window’ does not have any field named ‘EventEmitter’
../ncurses.cc: In member function ‘void Window::Event(int)’:
../ncurses.cc:2107: error: ‘class Window’ has no member named ‘Emit’
Waf: Leaving directory `/Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test/node_modules/ncurses/build'
Build failed:  -> task failed (err #1): 
    {task: cxx ncurses.cc -> ncurses_1.o}
npm ERR! error installing ncurses@0.2.0 Error: ncurses@0.2.0 preinstall: `node-waf configure build`
npm ERR! error installing ncurses@0.2.0 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing ncurses@0.2.0     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing ncurses@0.2.0     at ChildProcess.emit (events.js:70:17)
npm ERR! error installing ncurses@0.2.0     at maybeExit (child_process.js:359:16)
npm ERR! error installing ncurses@0.2.0     at Process.onexit (child_process.js:395:5)
npm ERR! ncurses@0.2.0 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the ncurses@0.2.0 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-waf configure build
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 Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "ncurses"
npm ERR! cwd /Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.105
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Volumes/Spinning Rust/data/techpriester/Development/node-ncurses-test/npm-debug.log
npm not ok
mscdex commented 12 years ago

I've just published the newest version to npm. Please try again.

ghost commented 12 years ago

Install now runs smoothly. Thanks.