-
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
Instruct node-gyp to use specific version of g++ and gcc #838
Comments
It looks like you're using devtoolset-2; it's been a while since I last worked with that but I remember you need to start a shell with |
Thanks for the quick response. Setting the variables worked but still the node-gyp rebuild is failing.
I tried that already but it still fails.
|
That error suggests it's not actually using g++ 4.8. What does |
Initially ‘env V=1 node-gyp rebuild’ was failing with the below error.
Little googling, pointed me to http://stackoverflow.com/questions/17706310/how-to-add-path-with-module-to-python And I installed the gyp libraries from chromium and now ‘env V=1 node-gyp rebuild’ is giving the below error.
|
Where does that file name come from? Are you still using |
Ah,, sorry I was using it before. When I removed it, its giving a different error now. Is it happening because of capnp C libraries?
|
I would say so. |
Any pointers on how to fix this? [Sorry for bothering you. I spent some time digging this today but couldn't fix it]. |
Sorry, no idea. I'd ping the author of the node bindings if I were you. I'll close the issue. |
Thanks for all your help. FTR, I was able to make npm install work for capnp by using the below command. env CC=/opt/rh/devtoolset-2/root/usr/bin/gcc CXX=/opt/rh/devtoolset-2/root/usr/bin/g++ npm install capnp I was under the impression that there will be a .js file which our users can use in their code... But not sure if I have got the right one... ~/node_modules/capnp $ ls Thanks for your help once again :). |
Look for the |
This is what I have in the "main" filed in package.json. "main": "src/node-capnp/capnp.js", Let me try to write some test JS code by using this module and see if it works. Thanks :) |
Hello,
I am new to the world of installing Javascript modules and I am having the task of installing capnp JS libraries using g++ v4.8 in our RHEL6 environment.
As we only have v4.4.7 in /usr/bin/g++, we decided to use the g++ (v4.8.2) installed in /opt.
I downloaded the source from https://github.com/kentonv/node-capnp and added the below lines to binding.gyp but it doesn’t work.
When I straced the process, found that node-gyp is looking for the g++ libraries only in below location.
I tried searching around to see if I can update the path somewhere but couldn’t find it. FWIW, I tried updating my .pathrc too but it didn’t help.
When I run npm install, I get the below message.
How can I update node-gyp to use the different version of g++?
Please let me know if something isn’t clear.
The text was updated successfully, but these errors were encountered: