dubocr / homebridge-gpio-device

Homebridge GPIO device expose several HomeKit accessories interacting with GPIO
Apache License 2.0
65 stars 22 forks source link

Build Failure - Raspbian Buster / Node 10.15.2 / WiringPi 2.46 #69

Open J1mbo opened 5 years ago

J1mbo commented 5 years ago

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 
+ homebridge-gpio-device@0.4.3
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 :)

edwardclem commented 5 years ago

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.

EdgarLongin commented 4 years ago

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.