Giter Club home page Giter Club logo

Comments (8)

chrismatthieu avatar chrismatthieu commented on July 19, 2024

It looks like zmq is an optional dependency for Mosca (https://github.com/mcollina/mosca/blob/master/package.json#L96). Did it still install for you?

Copying the author: @mcollina

from meshblu.

mcollina avatar mcollina commented on July 19, 2024

zmq is optional, so it should not be an issue if it's not installed, just some bad errors on install.

from meshblu.

abhayghatpande avatar abhayghatpande commented on July 19, 2024

I think it cropped up when I issued npm rebuild. I was missing some headers on my system initially, dns_sd.h and zmq.h. So after getting those in place, I tried to rebuild. But looks like that was a bad idea, because now I'm getting a bunch of errors on geoip-lite.

from meshblu.

abhayghatpande avatar abhayghatpande commented on July 19, 2024

To solve the zmq issue, I used https://github.com/JustinTulloss/zeromq.node, sym-linked it to zmq, and changed the version to 2.8.0 in the package.json.

Please let me know if what I'm doing is not the way to go. I'm pretty much a noob at JS and Node.

from meshblu.

chrismatthieu avatar chrismatthieu commented on July 19, 2024

geoip-lite is also an optional dependency. we use it to convert connected ip addresses to geocodes.

from meshblu.

abhayghatpande avatar abhayghatpande commented on July 19, 2024

So is npm rebuild not the way to go? Am I not using it correctly?

When I saw the initial errors for the missing headers, I stopped the npm install process with a ctrl-c. Then used npm rebuild. What if I want to install the optional modules, like zmq or geoip-lite? How can I request them to be installed?

from meshblu.

chrismatthieu avatar chrismatthieu commented on July 19, 2024

We normally deploy to Linux and Mac and have the gcc C compiler installed on the machine. npm install does the trick. These errors are expected without a C compiler; however, npm should still install everything else including the fallbacks where possible leaving out the optional dependencies.

from meshblu.

abhayghatpande avatar abhayghatpande commented on July 19, 2024

I did a fresh git clone and npm install and everything worked. So I'm going to close this issue. But I'm afraid that someone else may run into similar issues if they have missing header files like I did.

from meshblu.

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.