Comments (12)
did you do sudo apt-get install libavahi-compat-libdnssd-dev
before installing homekit2mqtt?
from homekit2mqtt.
That solved the issue, but unfortunately, I ran into another issue:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/build'
make: *** No rule to make target '../.node-gyp/5.10.1/include/node/common.gypi', needed by 'Makefile'. Stop.
make: Leaving directory '/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/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:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding/bignum.node" "--module_name=bignum" "--module_path=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding"
gyp ERR! cwd /usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum
gyp ERR! node -v v5.10.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/homekit2mqtt/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Linux 4.1.19-v7+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/homekit2mqtt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum
node-pre-gyp ERR! node -v v5.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/local/lib/node_modules/homekit2mqtt/node_modules/bignum/binding' (1)
npm info lifecycle [email protected]~install: Failed to exec install script
/usr/local/lib
└── (empty)
npm ERR! Linux 4.1.19-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homekit2mqtt"
npm ERR! node v5.10.1
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bignum
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bignum
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
npm ERR! code 1
from homekit2mqtt.
I guess this is a unresolved issue with Bignum on Node 5/6. Could you try if it works with Node 4?
from homekit2mqtt.
Unfortunately I can't downgrade Node on that Pi since it's necessary for an other project. I'll just keep running your app on my Mac. If you happen to find a solution, it would be great to hear.
from homekit2mqtt.
Perhaps it's worth a try: sudo npm install -g homekit2mqtt --unsafe-perm
Let me know if this works, otherwise I will investigate on this on sunday.
Also you could use https://github.com/tj/n to handle different node versions on the same system.
from homekit2mqtt.
Works perfect! App is running on my Raspberry Pi now. Thanks for the fabulous script! Works like a charm!
from homekit2mqtt.
Great, good to hear, thanks :-)
If you need some inspiration on what to connect to MQTT my "awesome" link list might be worth a look: https://github.com/hobbyquaker/awesome-mqtt
Regards,
Sebastian
from homekit2mqtt.
This is the project I used it for: http://michaelteeuw.nl/tagged/curtains
I'll probably write a blogpost about your library soon, cause you saved me a lot of work. ;)
from homekit2mqtt.
Wow, cool project. Automated curtains would fit into my house very good. Have to talk to my wife ;-)
I would be happy if you mention my project in your Blog!
from homekit2mqtt.
Will do (in a week or two). I'll send you the link when it's posted.
from homekit2mqtt.
As promised I wrote a link about homekit2mqtt: http://michaelteeuw.nl/post/151621813122/homekit-curtains
from homekit2mqtt.
cool!!! thx! :-)
from homekit2mqtt.
Related Issues (20)
- Adding custom prefix/customize published MQTT payload for clients with multiple services
- Project status HOT 2
- ToObject deprecation warnings on install
- stuck on: mqtt homekit/connected 0 0 HOT 2
- Error: libnode.so.64: cannot open shared object file: No such file or directory HOT 1
- Is it possible to use on an external network? HOT 1
- Looking for the complete docker installation command, failed to start all the time! HOT 1
- How to Set Setup ID HOT 1
- Installation failure HOT 1
- Home Assistant to MQTT bridge HOT 2
- homekit2mqtt Installation HOT 2
- Error while trying to install HOT 4
- Send homekit device to MQTT
- Device status isn't updated
- Velux Bind: Anyone got WindowCovering service working? HOT 3
- Temperature sensor DHT11 on Tasmota device
- Misleading project name (should be mqtt2homekit) HOT 2
- 安装不上 能不能打包一个docker镜像使用docker运行
- 安装不上 能不能打包一个docker镜像使用docker运行
- 安装不上 能不能打包一个docker镜像使用docker运行
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homekit2mqtt.