Archive | April 2012

Nodejs Sqlite Module Issue

I have been trying on setting up with nodejs sqlite module (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: -> build/Release/sqlite3_bindings_1.o
../ 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_1.o}

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

i found an another module to over come this issue node-sqlite3

installation can be done pretty simple with npm registry

npm install sqlite3