nodejs-starter icon indicating copy to clipboard operation
nodejs-starter copied to clipboard

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

Open jotadepicas opened this issue 9 years ago • 2 comments

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:

  • node: v4.3.1
  • node-gyp: v3.3.0

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!

jotadepicas avatar Feb 20 '16 17:02 jotadepicas

+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.

bwinterton avatar Aug 26 '16 16:08 bwinterton

+1

aresa7796 avatar Sep 18 '16 02:09 aresa7796