[Pkg-javascript-devel] Bug#840464: nodejs: 'npm install' command fails with compilation error in Kerberos header
David L Lambert
davidl at lmert.com
Tue Oct 11 19:03:32 UTC 2016
Package: nodejs
Version: 0.10.29~dfsg-2
Severity: normal
Dear Maintainer,
After installing packages "nodejs", "nodejs-legacy", and "libkrb5-dev",
I still get a compilation error blocking completion of "npm install mongodb"...
> kerberos at 0.0.21 install /home/dllamber/src/project2/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory '/home/dllamber/src/project2/node_modules/mongodb/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.h:9:0,
from ../lib/kerberos.cc:1:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
kerberos.target.mk:88: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/home/dllamber/src/project2/node_modules/mongodb/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.16.0-4-686-pae
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/dllamber/src/project2/node_modules/mongodb/node_modules/kerberos
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
mongodb at 2.0.55 node_modules/mongodb
├── es6-promise at 2.1.1
├── readable-stream at 1.0.31 (inherits at 2.0.3, isarray at 0.0.1, string_decoder at 0.10.31, core-util-is at 1.0.2)
├── kerberos at 0.0.21 (nan at 2.3.5)
└── mongodb-core at 1.2.31 (bson at 0.4.23)
As per user "kathiedrt"'s comment on https://github.com/nodejs/nan/issues/414 ,:
"I just did a "npm -g install npm" to upgrade the debian's npm to npm's npm
and that presumably included node-gyp and that fixed it so thanks..."
However, that doesn't sound like the Debian way of doing things ... ?
-- System Information:
Debian Release: 8.5
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages nodejs depends on:
ii libc-ares2 1.10.0-2
ii libc6 2.19-18+deb8u4
ii libgcc1 1:4.9.2-10
ii libssl1.0.0 1.0.1t-1+deb8u2
ii libstdc++6 4.9.2-10
ii libv8-3.14.5 3.14.5.8-8.1
ii zlib1g 1:1.2.8.dfsg-2+b1
nodejs recommends no packages.
nodejs suggests no packages.
-- no debconf information
More information about the Pkg-javascript-devel
mailing list