node-waf build Error
anandof28 opened this issue · 2 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}
I stumbled on the same issue today, in Ubuntu 11.4. node_events.h
was removed from node somewhere mid v0.5.x. sqlite3_bindings.cc
has to be rewritten to take it into account.
Meanwile I've tried to mimic this approach.
I copied slightly modified versions of node_events.h
and .cc
from node v0.5.0 in the root directory. It compiles, but now I get this error:
Error: Unable to load shared library /home/pygy/apps/bl0/sqlite3_bindings.node
at Object..node (module.js:472:11)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/home/pygy/apps/bl0/sql/node-sqlite/sqlite.js:26:16)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
See #8 for the code.
Same issue in Fedora 17, node v0.8.7