Skip to content
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

Support M1 #18

Closed
nsantini opened this issue May 26, 2022 · 3 comments
Closed

Support M1 #18

nsantini opened this issue May 26, 2022 · 3 comments

Comments

@nsantini
Copy link

I'm installing a client on an apple M1 processor. First I got issues trying to get npm install working on Node 18 and 16. The issue was about nj-cli. Finally got it installing using Node 14 (which will be out of maintenance next year). But then I got this error trying to load threads using db2.

getThreads Error: No native build was found for platform=darwin arch=arm64 runtime=node abi=83 uv=1 armv=8 libc=glibc node=14.19.3
    loaded from: /Users/nico/Workspace/perihelion/node_modules/ssb-validate2-rsjs-node

    at Function.load.path (/Users/nico/Workspace/perihelion/node_modules/node-bindgen-loader/index.js:62:9)
    at load (/Users/nico/Workspace/perihelion/node_modules/node-bindgen-loader/index.js:27:30)
    at Object.<anonymous> (/Users/nico/Workspace/perihelion/node_modules/ssb-validate2-rsjs-node/index.js:5:41)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/Users/nico/Workspace/perihelion/node_modules/ssb-db2/db.js:16:7)
@staltz
Copy link
Member

staltz commented May 26, 2022

Related: ssbc/ssb-db2#294

@nsantini
Copy link
Author

Thanks @staltz. I will close this issue on favour of that one since it supersedes this one. 🙏

@nsantini
Copy link
Author

Ok, I got this working @staltz

Following some of the comments in the other issues you linked. I did this:

Then I was able to run my ssb client without issues

NB: because of how Rust environments work (Im not sure how), I had to run all the commands on the same terminal window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants