Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get mongojs (node-mongodb-native wrapper) to work on Ubuntu 10.10
    text
    copied!<p>I used <code>npm install mongojs</code> to get the wrapper, but when trying to run my app I get the following error: </p> <pre><code>node.js:195 throw e; // process.nextTick error, or 'error' event on first tick ^ Native bson parser not compiled, please compile or avoid using native_parser=true </code></pre> <p>I then tried to get the source from github and compile node-mongodb- native myself. Then I get the following error when running make:</p> <pre><code>make -C ./external-libs/bson make[1]: Entering directory`/tmp/node-mongodb-native/external-libs/bson` rm -rf build.lock-wscript bson.node node-waf configure build Checking for program g++ or c++: /usr/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 node path: not found Checking for node prefix: ok /usr/local 'configure' finished successfully (0.069s) Waf: Entering directory `/tmp/node-mongodb-native/external-libs/bson/build' [1/9] cxx: bson.cc -&gt; build/default/bson_1.o [2/9] cxx: long.cc -&gt; build/default/long_1.o [3/9] cxx: objectid.cc -&gt; build/default/objectid_1.o [4/9] cxx: binary.cc -&gt; build/default/binary_1.o [5/9] cxx: code.cc -&gt; build/default/code_1.o [6/9] cxx: dbref.cc -&gt; build/default/dbref_1.o ../bson.cc:7:25: fatal error: node_events.h: No such file or directory compilation terminated. ../objectid.cc:6:25: fatal error: node_events.h: No such file or directory compilation terminated. ../code.cc:6:25: fatal error: node_events.h: No such file or directory compilation terminated. ../dbref.cc:6:25: fatal error: node_events.h: No such file or directory compilation terminated. ../long.cc:6:25: fatal error: node_events.h: No such file or directory compilation terminated. ../binary.cc:7:25: fatal error: node_events.h: No such file or directory compilation terminated. Waf: Leaving directory `/tmp/node-mongodb-native/external-libs/bson/build' Build failed: -&gt; task failed (err #1): {task: cxx objectid.cc -&gt; objectid_1.o} -&gt; task failed (err#1): {task: cxx bson.cc -&gt; bson_1.o} -&gt; task failed (err #1): {task: cxx code.cc -&gt; code_1.o} -&gt; task failed (err #1): {task: cxx dbref.cc -&gt; dbref_1.o} -&gt; task failed (err #1): {task: cxx long.cc -&gt; long_1.o} -&gt; task failed (err #1): {task: cxx binary.cc -&gt; binary_1.o} make[1]: *** [all] Error 1 make[1]: Leaving directory `/tmp/node-mongodb-native/external-libs/bson' make: *** [build_native] Error 2 </code></pre> <p>Any ideas to why this is failing and how I can make it work? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload