Open darkbasic opened 1 year ago
My workaround for the moment is to put the following into .bashrc
:
eval "$(fnm env --arch ppc64le --use-on-cd)"
Would be nice to detect the node version and then default to the appropriate version ex: node less than 15 use x86 else arch! : )
@steve-ross it's literally what happens https://github.com/Schniz/fnm/blob/5e075f05d4920b4afe35edec448765d1fa02dc32/src/arch.rs#L19-L22
I don't unerstand what is ppc64le but I guess it can be an easy fix by adding support for it here? https://github.com/Schniz/fnm/blob/5e075f05d4920b4afe35edec448765d1fa02dc32/src/system_info.rs
Oh my bad! ppc64le ... old ass Mac?! 🙃
I don't unerstand what is ppc64le but I guess it can be an easy fix by adding support for it here?
It's PowerPC 64 bit Little Endian. Yes it should be easy enough and I will file a PR as soon as I will manage to test it.
ppc64le ... old ass Mac?!
Nope, brand new IBM Power 8/9/10 CPUs. In particular I am using the RaptorCS Talos 2, the only modern system available which is 100% open source down to the firmware. Old Macs are Big Endian only.
By the way FYI fnm does not build out of the box on ppc64le, because of the ring dependency. I've managed to find an IBM branch of ring which compiles fine, at least if you keep around your .git directory (that last part is weird and I have no idea why it happens).
EDIT: ring 0.17 should support all little endian architectures but it's still unreleased, plus it's not a direct dependency so the packages which depend on it must be updated to use the newer version as well.