Homebridge: Raspberry pi - cannot load bindings error

Created on 1 Dec 2016  Â·  5Comments  Â·  Source: homebridge/homebridge

I'm getting an error when trying to get Homebridge working on a Raspberry Pi B+. Anyone seen this?

Node: 6.9.1
Npm: 3.10.8

Installing per Pi instructions, but need to install a slightly different node package since I only have the arm6 architecture. No issues on install, but on running homebridge command I get the following:

`
* WARNING The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
WARNING Please fix your application to use the native API of Avahi!
WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
WARNING The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
WARNING Please fix your application to use the native API of Avahi!
WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
/usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:91
throw err
^

Error: Could not locate the bindings file. Tried:
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/Debug/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/Release/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/out/Debug/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/Debug/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/out/Release/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/Release/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/build/default/ed25519.node
→ /usr/local/lib/node_modules/homebridge/node_modules/ed25519/compiled/6.9.1/linux/arm/ed25519.node
at bindings (/usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:88:9)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/ed25519/index.js:1:99)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:6:15)`

stale

Most helpful comment

my solution is :
cd /usr/local/lib/node_modules/homebridge/node_modules/ed25519
sudo node-gyp BUILDTYPE=Release rebuild

All 5 comments

Try 'npm install -g bindings' and run again.

Looks like Node 6.9.1 on the B+ is not compatible for some reason. I installed Node 4.3.2 and everything works.

my solution is :
cd /usr/local/lib/node_modules/homebridge/node_modules/ed25519
sudo node-gyp BUILDTYPE=Release rebuild

@stardustliu Your solution worked for me.

Don't forget to install node-gyp first through NPM.

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MarcAlonso picture MarcAlonso  Â·  5Comments

morilm picture morilm  Â·  6Comments

jeffl78 picture jeffl78  Â·  4Comments

dcaccount picture dcaccount  Â·  5Comments

StefanMeGit picture StefanMeGit  Â·  4Comments