orlandov/node-sqlite

node-waf build Error

Opened this issue · 7 comments

I am using Ubuntu 11.10 , node-waf configure has no issue but build throws this error

Waf: Entering directory /home/anand/Downloads/node-sqlite/build' [1/2] cxx: sqlite3_bindings.cc -> build/Release/sqlite3_bindings_1.o ../sqlite3_bindings.cc:19:25: fatal error: node_events.h: No such file or directory compilation terminated. Waf: Leaving directory/home/anand/Downloads/node-sqlite/build'
Build failed: -> task failed (err #1):
{task: cxx sqlite3_bindings.cc -> sqlite3_bindings_1.o}

The same just happened for me. Did you find any workaround?

@schteppe i tired re-installing entire thing, still facing same issue.

$ node-waf configure
Checking for program g++ or c++          : /home/steffe/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for program gcc or cc           : /home/steffe/bin/gcc 
Checking for gcc                         : ok  
Checking for node path                   : not found 
Checking for node prefix                 : ok /usr/local 
'configure' finished successfully (0.053s)

Node path not found..? But:

$ echo $NODE_PATH
/usr/lib/node_modules:/home/steffe/git/node:

...should be OK.

People seem to have started using this package instead:
https://github.com/developmentseed/node-sqlite3

It is called "sqlite3" in the NPM registry.

@schteppe ya thanks ... it works! really thank you so much.

No problem! I would suggest @orlandov to put a note in the readme about this to avoid future confusion.

ChangeLog:* #1335 Remove EventEmitter from C++

that object (and include file) was removed from node around v0.5.2