rickyrauch / nodejs-starter

Single Page App setup using industry's best practices and modules. Node.js, Express, Mongoose, passport.js, component.io, Jade, Stylus and Bootstrap.
http://nodejs-starter.herokuapp.com
665 stars 134 forks source link

Failed to load c++ bson extension, using pure JS version #25

Open jotadepicas opened 8 years ago

jotadepicas commented 8 years ago

Hi, I've installed the project following the provided instructions, however when I try to run it I get the following messages:

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version

It seems this is due to a build error in this module: ./node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/builderror.log

In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:13:18: fatal error: util.h: No such file or directory
#include "util.h"
                 ^
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1

So it seems this depends on a missing header file util.h.

My versions are as follows:

Am I doing something wrong or is this an actual bug? Why the missing util.h file? Is this due to versions compatibility? Let me know if you need more info.

Thanks!

bwinterton commented 8 years ago

+1 I am seeing this same issue. Specifically when running in the Node 4.4 docker container. I have installed build-essential, gcc, make, node-gyp, etc, but nothing seems to get me past this error.

aresa7796 commented 7 years ago

+1