Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-waf build Error #7

Open
anandof28 opened this issue Apr 19, 2012 · 2 comments
Open

node-waf build Error #7

anandof28 opened this issue Apr 19, 2012 · 2 comments

Comments

@anandof28
Copy link

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}

@pygy
Copy link
Contributor

pygy commented May 3, 2012

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.

@dotkrnl
Copy link

dotkrnl commented Aug 20, 2012

Same issue in Fedora 17, node v0.8.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants