-
Notifications
You must be signed in to change notification settings - Fork 68
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
libusdt-build.sh tries to use the wrong node #26
Comments
So, at best, my earlier suggestion to use npm_install_prefix to try to find the running node during a Ideally, Either way, I think we should have "libusdt-build.sh" fallback to @chrisa thoughts? |
@trentm looking at how things were before #24, in v0.2.3, we relied entirely on the PATH by just invoking "node". Was that causing you problems with Node 0.6, or was the issue just the use of process.config? @davepacheco from what you show in this issue above, relying on PATH would work for your situation - does v0.2.3 build ok for you? |
Based on this commit to npm: it seems that just relying on PATH is the right thing to do. I'm planning to just remove the use of $npm_config_prefix, and invoke "node" directly in libusdt-build.sh. |
@chrisa It was just the Python usage.... along with some confusion as to whether npm did (a) require the used node to be first on the PATH and (b) whether it did so itself. Sounds like just using 'node' (first on PATH) would work. |
I've reverted to just using node from PATH. I'll do a release when the changes here to take advantage of chrisa/libusdt#5 are ready. |
dtrace-provider 0.2.5 has this fix. |
When installing a package with dtrace-provider as a dependency, it tries to use the wrong node and ends up building the wrong kind of shared object:
The problem is that libusdt-build.sh is using npm_config_prefix to determine where node is, but that's not what prefix refers to. According to the npm documentation:
Note that the default matches node's install prefix, but the user can set this to anything they want to install items somewhere other than where node is installed, which is what I had done here.
The resulting binary fails to load dtrace-provider since it has the wrong ELF type for my 32-bit node.
The text was updated successfully, but these errors were encountered: