-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Can't install in node on linux/arm64 on Apple Silicon ARM64 M1 - because of missing binary #1413
Comments
yup. I'm running Ubuntu 20.04 for ARM in parallels and I get this when installing apps referring to sqlite3
|
Looks like if you set the python variable before, you're able to build it from source just right. e.g.:
|
This went back to needing python 2.x since the v5.0.1 update (relevant issue: #1415), but previously it indeed could be built with python 3.x, and in fact refused to build in python 2.x. |
Can we please have a precompiled arm64 version of: https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.2/napi-v3-linux-arm64.tar.gz just like the x64: https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.2/napi-v3-linux-x64.tar.gz |
Same issue here, a precompiled version would be useful! |
Meanwhile I've switched to this fork, which has it working: https://github.com/microsoft/vscode-node-sqlite3 |
This should now be fixed in |
@daniellockyer I don't see any Arm64 binaries in the github release binaries of 5.0.3 .. Are those coming? |
Awesome @daniellockyer ! Maybe also separate Electron builds? Or should the current ones already work? Very glad you picked up the project - was going on a dead end otherwise! |
I just want to share that I solved my issue by doubly making sure XCode was fully installed on my new-ish M1 MBP and letting the installation script build the binary as its back-up. (So, if anyone is still running into this issue please be sure XCode is installed and you've opened it at least once to be sure things are in a good initial state for your ARM Macbook). But before that happened I suffered from a surprising 404 error. When I visited the release page and downloaded the file directly it worked fine. But if I plugged the URL for the tarball into my browser it would throw an error back at you. It appears that GitHub is blocking hot linking like we're back in the days of ImageShack or something. If I attempted the naive fix of just placing my manually downloaded See the "ERR!" line below:
|
@TiE23 We don't currently provide arm64 darwin binaries though 🤔 |
Uhhhgggggg, yep. That says My life as an ARM MacOS user continues to be a journey of embarrassments. Last month it was dealing with Docker fruitlessly trying to find arm64 images until I forced it to find x64 and run them through Rosetta. Sorry about that. |
No worries 😁 I'm working on prebuilt binaries for arm64 darwin but it needs some CI machines 🙂 |
@daniellockyer - you should really compile also arm64 images for Darwin (Mac). It is possible to compile those on intel easy with cross compilation. Check some of the other projects that does that already, like: https://github.com/lovell/sharp-libvips/blob/main/.github/workflows/build-release.yml How it is done: lovell/sharp-libvips#74 |
Very interesting 👀 |
I have solved, and I could cry. For instance, my directory was named "Software Engineering", but renaming as "Software_Engineering" I can install sqlite3 perfectly. Jeez. |
Yes I also noticed the space in the path problem and the failure due to not escaping. I think it is in one of the more global components node-gyp or the pre-build, can't recall |
I think the cause of the build failure when the directory path contains spaces is nodejs/node-gyp#65 (over 10 years old!). |
FYI v5.1.1 now comes with prebuilt Darwin ARM64 binaries 🙂 https://github.com/TryGhost/node-sqlite3/releases/tag/v5.1.1 |
works for me |
worked for me, even using node v18.12.1 |
Trying to install node-sqlite4 on linux/arm64 fails because of the missing precompiled binary.
The text was updated successfully, but these errors were encountered: