Suddenly: Error while installing/updating Homebridge
See original GitHub issueHi,
suddenly installing/upgrading homebridge is giving me the following error/output:
npm install -g --unsafe-perm homebridge /usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge
curve25519-n@1.2.0 install /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n node-gyp rebuild
make: Entering directory ‘/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/build’
CXX(target) Release/obj.target/curve/node_curve.o
as: symbol lookup error: /usr/lib/libbfd-2.25-system.so: undefined symbol: bfd_plug)n_arch
curve.target.mk:93: recipe for target ‘Release/obj.target/curve/node_curve.o’ failed
make: *** [Release/obj.target/curve/node_curve.o] Error 1
make: Leaving directory ‘/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/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:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Linux 4.9.35-v7+
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! curve25519-n@1.2.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the curve25519-n@1.2.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-05-11T10_57_42_574Z-debug.log
I’m running on rasping jessie und my homebridge was running fine until current update. How can I get it back working? I think the error is related to build essentials and/or one of its dependencies. Am I right? Or do I misinterpret something?
Any directions what I can do would be highly appreciated.
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
After updating node (to another major version), uninstall homebridge and re-install it:
Not to necro-post, but in case it helps others: i had the same issue as dehsgr and it turned out i was missing the —unssafe-perm switch. i.e. after updating node i had to run