Giter Site home page Giter Site logo

Comments (12)

hobbyquaker avatar hobbyquaker commented on August 23, 2024

did you do sudo apt-get install libavahi-compat-libdnssd-dev before installing homekit2mqtt?

from homekit2mqtt.

MichMich avatar MichMich commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

I guess this is a unresolved issue with Bignum on Node 5/6. Could you try if it works with Node 4?

from homekit2mqtt.

MichMich avatar MichMich commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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.

MichMich avatar MichMich commented on August 23, 2024

Works perfect! App is running on my Raspberry Pi now. Thanks for the fabulous script! Works like a charm!

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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.

MichMich avatar MichMich commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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.

MichMich avatar MichMich commented on August 23, 2024

Will do (in a week or two). I'll send you the link when it's posted.

from homekit2mqtt.

MichMich avatar MichMich commented on August 23, 2024

As promised I wrote a link about homekit2mqtt: http://michaelteeuw.nl/post/151621813122/homekit-curtains

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

cool!!! thx! :-)

from homekit2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.