homebridge-gpio-device icon indicating copy to clipboard operation
homebridge-gpio-device copied to clipboard

Build Failure - Raspbian Buster / Node 10.15.2 / WiringPi 2.46

Open J1mbo opened this issue 5 years ago • 2 comments

Firstly thanks for making this plug, which is exactly what I need to hook up my garage door :)

When building it bombs out with this:

make: *** [nodeWiringPi.target.mk:118: Release/obj.target/nodeWiringPi/src/wiringPi.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.57-v7+
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
+ [email protected]
added 4 packages from 13 contributors in 43.527s

I'm not familiar with Node but very happy to put some effort in troubleshooting if some pointers can be provided :)

J1mbo avatar Jul 22 '19 08:07 J1mbo

This appears to be an issue with the WiringPi version used by node-wiring-pi - I was able to resolve it by manually removing WiringPi using sudo apt-get purge wiringpi and reinstalling version 2.46 using the instructions here.

edwardclem avatar Aug 05 '19 20:08 edwardclem

This appears to be an issue with the WiringPi version used by node-wiring-pi - I was able to resolve it by manually removing WiringPi using sudo apt-get purge wiringpi and reinstalling version 2.46 using the instructions here.

Thank you very much for this simple command. It seems that you resolved what driving me nuts since weeks.

EdgarLongin avatar Apr 21 '20 17:04 EdgarLongin