-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp build can't find node.h #519
Comments
So I setup a new VM with the same lubuntu and installed all the necessary packages from scratch... and it all works. Still, I really want to understand why and what the best solution is. A complete re-install feels like a really impractical approach to the many problems we face as coders. And it doesn't make me feel like I've learned anything. So for the sake of education (mine and those with similar problems), what can be done? My suspicion is that somewhere along the line, node-gyp (or maybe Make) has been given the wrong set of assumptions, and that there is a symlink or path alteration that needs to happen. I apologize if this is question would be really more appropriate on askubuntu or some other more general site, but with any luck, a clear answer may shunt these questions away from this site in the future. Thanks :) |
Did you ever get the answer @asha451 ? |
I get same problem . |
I have the same problem! |
Try |
I use nvm, so I should make a soft link to /usr/local/include/node |
@cccRaim could you post the error message you are getting (preferably also the log). |
[email protected] You can see the same problem, can't found the file in c language file, this problem is related to C's include rule, on the other hand, it means your include DIRs don't have the file (such as node/node.h). |
@cccRaim thank you for following up. |
@cccRaim You should file an issue against php-pack because those imports are simply wrong. It's not a node-gyp bug. I'll close this out. If you (generic you) run into a similar-but-not-identical issue, please file a new issue and include build output. |
@bnoordhuis wait. it's not my issue. w(゚Д゚)w |
@cccRaim the original issue has been open for 3 years (and 3 major |
I wonder if this might be fixed when the fix for nodejs/node#20921 lands |
@jonhoo No, completely unrelated. |
Environment:
Lubuntu 14.04.1 LTS on a 32bit VM
bitnami Meanstack-2.6.4-0
I've run npm install build-essential to make sure I have python 2.7, make, etc.
While following a tutorial on creating an add-on for node, the command "node-gyp build" failed, unable to find the "node.h" file. The following is the console log:
Before this, I had to copy the common.gypi file to the expected directory in order to make the "node-gyp configure" command work. (re-install of node-gyp didn't work)
Am I seeing a pattern? How do I tell node-gyp where to find my libraries/includes?
node-gyp configure --nodedir="/home/nnnnn/meanstack-2.6.4-0/nodejs/include/node"
was something that I found worked for the configure command, but not for the build command.Thank you kindly for any assistance.
The text was updated successfully, but these errors were encountered: