node-sqlite icon indicating copy to clipboard operation
node-sqlite copied to clipboard

node-waf build Error

Open anandof28 opened this issue 12 years ago • 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}

anandof28 avatar Apr 19 '12 01:04 anandof28

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

schteppe avatar Apr 25 '12 12:04 schteppe

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

anandof28 avatar Apr 25 '12 12:04 anandof28

$ 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.

schteppe avatar Apr 25 '12 13:04 schteppe

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

It is called "sqlite3" in the NPM registry.

schteppe avatar Apr 25 '12 13:04 schteppe

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

anandof28 avatar Apr 25 '12 16:04 anandof28

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

schteppe avatar Apr 25 '12 18:04 schteppe

ChangeLog:* #1335 Remove EventEmitter from C++

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

cleverca22 avatar Nov 20 '12 15:11 cleverca22