I’m happy to announce that we are now building and publishing ARM64 releases for the compiler, for both Linux and macOS.
These builds are courtesy of the M2 machine running in our office at id3as.
How to get these builds:
they are not yet included in a stable release, but they are already available for the pre-release versions.
the npm installer picks them up as well, so e.g. you can do
npm install purescript@0.15.9-6
…and you’ll get the right binary if you’re running on a mac M1/M2 or a Linux ARM64 machine.
if you are using easy-purescript-nix to fetch your compilers, my fork has a patch to fetch the latest prerelease (you can also get spago-next from there).
I will upstream this patch once we have a stable release out with the new builds.
Thanks @CarstenKoenig, your fix has been merged and released. Installer should work for folks now, with any version on non-ARM machines and the latest 0.15.9 prereleases on ARM machines.
M1 User here. yesterday I tried npm i purescript -g and It occurs error like below
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript
npm ERR! command failed
npm ERR! command sh -c install-purescript --purs-ver=0.15.8
npm ERR! [ FAILURE ] Check if a prebuilt 0.15.8 binary is provided for darwin-arm64 (317ms)
npm ERR! Error: 404 Not Found
npm ERR! at /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript/node_modules/purescript-installer/dl-tar/index.js:193:13
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at async /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript/node_modules/purescript-installer/dl-tar/index.js:190:17
npm ERR!
npm ERR! See troubleshooting suggestions in https://github.com/purescript/purescript/blob/master/INSTALL.md
and Thanks to this article, I solved the problem. npm install purescript@0.15.9-6 works well.
but I think many people will struggle with install like me