Archive | April 2012

Nodejs Sqlite Module Issue


I have been trying on setting up with nodejs sqlite module https://github.com/grumdrig/node-sqlite (Node-Sqlite) and i am facing an issue as follow when i try to build

node-waf build

it throws me following 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}

My platform was ubuntu v11.04 and node v0.6.15

i found an another module to over come this issue https://github.com/developmentseed/node-sqlite3 node-sqlite3

installation can be done pretty simple with npm registry

npm install sqlite3