-
Notifications
You must be signed in to change notification settings - Fork 187
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
Could not open '/lib64/ld-linux-x86-64.so.2' #208
Comments
Hello! I would love to fix this, but I'm not sure how. @mcollina @RafaelGSS WDYT? |
Well, it seems we need to adjust it in the nodejs build pipeline, to call the generate based on the binary platform, and in this repository always wait for a platform input. Maybe, to avoid breaking change, use --platform=linux/amd64 by default. |
@jd-carroll I've created #215 to give a workaround for this. Can you try it and tell me if it makes easier to fix your problem? |
If you're looking at this issue, it likely means you are on an M1 architecture (or at least not x86-64).
The problem is that the
prebuild-wasm
script defined in thepackage.json
is not platform agnostic. The default (presumably from Docker) is to use an x86-64 architecture. Meaning, if you are not on an x86-64 architecture you'll likely end up with an error like this:Solution
For me on an M1 mac, the solution was to change the
package.json
from:
"prebuild-wasm": "docker build -t llhttp_wasm_builder . && npm run wasm -- --setup",
to:
"prebuild-wasm": "docker build --platform=linux/amd64 -t llhttp_wasm_builder . && npm run wasm -- --setup",
If you are not on an M1 mac, you'll need to specify the correct architecture for yourself
The text was updated successfully, but these errors were encountered: