problem with npm rebuild
See original GitHub issuehey guys, im trying to build this on raspberry pi and i run into problems im hoping you guys can help with:
pi@raspberrypi ~/HAP-NodeJS $ npm rebuild
curve25519@1.0.0 install /home/pi/HAP-NodeJS/node_modules/curve25519 node-gyp rebuild
make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/curve25519/build’ CXX(target) Release/obj.target/curve/node_curve.o SOLINK_MODULE(target) Release/obj.target/curve.node SOLINK_MODULE(target) Release/obj.target/curve.node: Finished COPY Release/curve.node make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/curve25519/build’
bignum@0.6.1 install /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum node-gyp configure build
make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build’ make: Nothing to be done for ‘all’. make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build’ curve25519@1.0.0 /home/pi/HAP-NodeJS/node_modules/curve25519 js-nacl@0.6.0 /home/pi/HAP-NodeJS/node_modules/js-nacl node-hkdf@0.0.1 /home/pi/HAP-NodeJS/node_modules/node-hkdf vows@0.5.13 /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows eyes@0.1.8 /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows/node_modules/eyes node-persist@0.0.2 /home/pi/HAP-NodeJS/node_modules/node-persist mkdirp@0.3.5 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/mkdirp underscore@1.4.4 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/underscore sugar@1.3.9 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/sugar srp@0.2.0 /home/pi/HAP-NodeJS/node_modules/srp bignum@0.6.1 /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum
pi@raspberrypi ~/HAP-NodeJS $ node Core.js
module.js:340 throw err; ^ Error: Cannot find module ‘mdns’ at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/pi/HAP-NodeJS/Advertiser.js:1:74) at Module._compile (module.js:456:26) at Object.Module._extensions…js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)
pi@raspberrypi ~/HAP-NodeJS $ npm install mdns npm WARN package.json curve25519@1.0.0 No repository field. /
mdns@2.2.1 install /home/pi/HAP-NodeJS/node_modules/mdns node-gyp rebuild
make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/mdns/build’
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from …/src/dns_sd.cpp:1:0:
…/src/mdns.hpp:31:20: fatal error: dns_sd.h: No such file or directory
compilation terminated.
dns_sd_bindings.target.mk:128: recipe for target ‘Release/obj.target/dns_sd_bindings/src/dns_sd.o’ failed
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/mdns/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/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:810:12)
gyp ERR! System Linux 3.12.28+
gyp ERR! command “node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/pi/HAP-NodeJS/node_modules/mdns
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! mdns@2.2.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.2.1 install script.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls mdns
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.12.28+
npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” “install” “mdns”
npm ERR! cwd /home/pi/HAP-NodeJS
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Issue Analytics
- State:
- Created 9 years ago
- Comments:26 (3 by maintainers)
Top GitHub Comments
Did you run
sudo apt-get install libavahi-compat-libdnssd-dev
beforenpm rebuild
?@quiquoi Glad it finally works ^^ @schlickspringer Right now I don’t think there is any kind of HomeKit app available on App Store. Sadly, a developer account with iDP is required to try HomeKit app on iOS (unless jailbreak the device).