Giter VIP home page Giter VIP logo

Comments (10)

nickdesaulniers avatar nickdesaulniers commented on August 27, 2024

yeah, we had included nanomsg as a submodule, but that seems to be causing some issues when just installing from npm. #5 should fix this. For now use version 0.1.0.

from node-nanomsg.

tcr avatar tcr commented on August 27, 2024

[edited] @willglaub, this issue is fixed in 0.2.0.

from node-nanomsg.

tcr avatar tcr commented on August 27, 2024

Actually, @nickdesaulniers, 0.2.0 would fix this issue but is not published to npm.

from node-nanomsg.

nickdesaulniers avatar nickdesaulniers commented on August 27, 2024

done @willglaub please verify

from node-nanomsg.

blowback avatar blowback commented on August 27, 2024

nanomsg 0.2.2 fails to install via 'npm install nanomsg' on clean macosx environment with:

../src/node_nanomsg.cc:6:10: fatal error: 'nanomsg/nn.h' file not found
#include <nanomsg/nn.h>
         ^
1 error generated.

from node-nanomsg.

tcr avatar tcr commented on August 27, 2024

Hm. @blowback can you run npm install nanomsg --ignore-scripts then look to see that the nanomsg sources are bundled with 0.2.2? (They appear to be for me). Then it's a matter of determining where the .gyp file thinks it's loading from.

from node-nanomsg.

blowback avatar blowback commented on August 27, 2024

They are, the problem is in the .cc file #includes. I suspect yours is working because you've got a system-wide installation of libnanomsg, so you actually have the relevant files in /usr/local/include/nanomsg or wherever.

I've a patch which fixes this on macos and linux, and also ensures that the binding is built with the same flags as the local version of the library.

from node-nanomsg.

nickdesaulniers avatar nickdesaulniers commented on August 27, 2024

I take it this is fixed?

from node-nanomsg.

blowback avatar blowback commented on August 27, 2024

I believe so, be nice if the OP can confirm.

from node-nanomsg.

willglaub avatar willglaub commented on August 27, 2024

Confirmed, this appears to be fixed. Just attempted a clean install, and the build process now works. Thanks.

from node-nanomsg.

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.