-
Notifications
You must be signed in to change notification settings - Fork 143
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
Proposal: support linux-x64-musl #190
Comments
It should work on master right now, at least theoretically, as we are using |
Hi, I've tried but I'm not sure how to force |
Just installing nodejs on a distribution based on musl should work by default. Node.js already detects musl as the libc and make the correct assumptions (alpine Dockerfile for reference). Cross-compiling from another libc on the other hand should be a bit tricky, I think the best chance is the official building docs for nodejs and the official issue tracker. You can pass building options for both |
Actually, I see the problem, |
FYI: I just merged #284, which adds an option to force compilation. You can just run I tested on an alpine container, and it works. Just be sure to install all nodejs building dependencies. Aside from what is listed on the official docs, I also needed to install the packages I still gonna work on a patch upstream for supporting pre-compiled binaries, the problem was a bit more difficult than I antecipated. |
Chiming in to confirm @augustobmoura's instructions worked for me on Alpine 3.11. |
this ticket has been open quite awhile. is it a difficult fix? |
NodeJS doesn't provide official pre-compiled binaries for alpine-musl as of yet. They do have an unofficial branch that have the binaries, but, unfortunately, it still not supported on node-build (the engine we use for installing the versions). The only way to do it right now is by compiling from source inside the musl container/system as per #190 (comment) |
instead of installing broken binaries, would it not be better to refuse the install with some kind of message? |
As a maintainer with very limited time, I am prioritizing the most recurrent issues. We will get to musl pre-compiled binaries eventually. We are also open to contributions, if you think a warning would help, we would appreciate a new PR |
It would be nice if we could support the
musl
build (https://github.com/nodejs/unofficial-builds#builds)The text was updated successfully, but these errors were encountered: