node.js - npm install mongoose causes gyp and kerberos errors (gssapi/gssapi.h file not found) -


ubuntu 14.04

nodejs version v4.1.1 installed these commands:

curl -sl https://deb.nodesource.com/setup_4.x | sudo -e bash - sudo apt-get install -y nodejs 

mongodb installed via mongodb docs tutorial

next tried installing mongoose doing

sudo npm install mongoose 

i received following error:

> kerberos@0.0.14 install /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos > (node-gyp rebuild) || (exit 0)  gyp err! build error gyp err! stack error: not found: make gyp err! stack     @ f (/usr/lib/node_modules/npm/node_modules/which/which.js:73:28) gyp err! stack     @ e (/usr/lib/node_modules/npm/node_modules/which/which.js:76:29) gyp err! stack     @ /usr/lib/node_modules/npm/node_modules/which/which.js:84:16 gyp err! stack     @ fsreqwrap.oncomplete (fs.js:82:15) gyp err! system linux 3.13.0-57-generic gyp err! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp err! cwd /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos gyp err! node -v v4.1.1 gyp err! node-gyp -v v3.0.3 gyp err! not ok mongoose@4.1.9 node_modules/mongoose ├── async@0.9.0 ├── hooks-fixed@1.1.0 ├── regexp-clone@0.0.1 ├── mpromise@0.5.4 ├── mpath@0.1.1 ├── muri@1.0.0 ├── ms@0.1.0 ├── sliced@0.0.5 ├── kareem@1.0.1 ├── bson@0.4.12 ├── mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26) └── mongodb@2.0.42 (es6-promise@2.1.1, readable-stream@1.0.31, mongodb-core@1.2.10) 

i tried installing make via

sudo apt-get install make 

tried installing mongoose via npm again, received following error:

> kerberos@0.0.14 install /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos > (node-gyp rebuild) || (exit 0)  make: entering directory `/root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'   cxx(target) release/obj.target/kerberos/lib/kerberos.o make: g++: command not found make: *** [release/obj.target/kerberos/lib/kerberos.o] error 127 make: leaving directory `/root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build' gyp err! build error gyp err! stack error: `make` failed exit code: 2 gyp err! stack     @ childprocess.onexit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp err! stack     @ emittwo (events.js:87:13) gyp err! stack     @ childprocess.emit (events.js:172:7) gyp err! stack     @ process.childprocess._handle.onexit (internal/child_process.js:200:12) gyp err! system linux 3.13.0-57-generic gyp err! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp err! cwd /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos gyp err! node -v v4.1.1 gyp err! node-gyp -v v3.0.3 gyp err! not ok mongoose@4.1.9 node_modules/mongoose ├── async@0.9.0 ├── hooks-fixed@1.1.0 ├── regexp-clone@0.0.1 ├── mpromise@0.5.4 ├── mpath@0.1.1 ├── muri@1.0.0 ├── ms@0.1.0 ├── sliced@0.0.5 ├── kareem@1.0.1 ├── bson@0.4.12 ├── mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26) └── mongodb@2.0.42 (es6-promise@2.1.1, readable-stream@1.0.31, mongodb-core@1.2.10) 

i tried installing g++ via

sudo apt-get install g++ 

tried installing mongoose again, received error:

> kerberos@0.0.14 install /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos > (node-gyp rebuild) || (exit 0)  make: entering directory `/root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'   cxx(target) release/obj.target/kerberos/lib/kerberos.o in file included ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: no such file or directory  #include <gssapi/gssapi.h>                            ^ compilation terminated. make: *** [release/obj.target/kerberos/lib/kerberos.o] error 1 make: leaving directory `/root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build' gyp err! build error gyp err! stack error: `make` failed exit code: 2 gyp err! stack     @ childprocess.onexit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp err! stack     @ emittwo (events.js:87:13) gyp err! stack     @ childprocess.emit (events.js:172:7) gyp err! stack     @ process.childprocess._handle.onexit (internal/child_process.js:200:12) gyp err! system linux 3.13.0-57-generic gyp err! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp err! cwd /root/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos gyp err! node -v v4.1.1 gyp err! node-gyp -v v3.0.3 gyp err! not ok mongoose@4.1.9 node_modules/mongoose ├── async@0.9.0 ├── hooks-fixed@1.1.0 ├── regexp-clone@0.0.1 ├── mpromise@0.5.4 ├── mpath@0.1.1 ├── muri@1.0.0 ├── ms@0.1.0 ├── sliced@0.0.5 ├── kareem@1.0.1 ├── bson@0.4.12 ├── mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26) └── mongodb@2.0.42 (es6-promise@2.1.1, readable-stream@1.0.31, mongodb-core@1.2.10) 

any ideas issue(s) are?

try installing kerberos development package:

apt-get install libkrb5-dev 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -