Trying to follow the directions for installing ghcup on a new Macbook Air (2020, MacOS 11.1) yields the following error:
20-12-19 9:59 mindbat@mindbat-m1-air ~ % curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | shWelcome to Haskell!This script will download and install the following binaries: * ghcup - The Haskell toolchain installer (for managing GHC/cabal versions) * ghc - The Glasgow Haskell Compiler * cabal - The Cabal build toolghcup installs only into the following directory,which can be removed anytime: /Users/mindbat/.ghcupPress ENTER to proceed or ctrl-c to abort.Note that this script can be re-run at any given time.Unknown architecture: arm64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Can we detect in-browser if we're running apple silicon?
Doesn't look like we can, unfortunately :/
Both Safari and Firefox report navigator.platform as "MacIntel". navigator.appVersion likewise reports "Intel" amongst all the other info in there, but nothing about Apple Silicon.
Even navigator.oscpu in Firefox is "Intel Mac OS X 11.1"
I found someone who's creating a canvas element on the page and then checking WebGL rendering info from it for GPU information, but that seems fragile (as the poster admits).
What do you think? Maybe best to offer both instruction sets when we detect a Mac, and let users grab whichever one they need?
Hey @mindbat I tried the script you used and I got the following error:
cathalobrien@Cathals-MacBook-Pro functional % curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | arch -x86_64 /bin/basharch: posix_spawnp: /bin/bash: Bad CPU type in executable(23) Failed writing body
Would it be possible to update the ghcup script to detect the architecture and install ghc via arch -x86_64? Then a different install command wouldn't be needed.
Alternatively, wouldn't the second command work for intel macs too, as it's simply forcing intel compatibility? In that case only the second command is needed.
$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | arch -x86_64 /bin/bashWelcome to Haskell!This script will download and install the following binaries: * ghcup - The Haskell toolchain installer (for managing GHC/cabal versions) * ghc - The Glasgow Haskell Compiler * cabal - The Cabal build toolghcup installs only into the following directory,which can be removed anytime: /Users/user/.ghcupPress ENTER to proceed or ctrl-c to abort.Note that this script can be re-run at any given time.Unknown architecture: arm64
arch -x86_64 /bin/bash and then uname -m results in: arm64
Rosetta is installed.
softwareupdate --install-rosettaI have read and agree to the terms of the software license agreement. A list of Apple SLAs may be found here: http://www.apple.com/legal/sla/Type A and press return to agree: AInstall of Rosetta 2 finished successfully
I just installed on a raspi4 (with debian from https://raspi.debian.net/tested-images/) and found the the architecture is recognized (after installing curl (;-)). uname says aarch64.
There were additional problem - missing libs, (llvm, libnuma-dev) and no PATH set. I will open separate issues.
I just installed on a raspi4 (with debian from https://raspi.debian.net/tested-images/) and found the the architecture is recognized (after installing curl (;-)). uname says aarch64.
Raspi4 has nothing to do with Apple Silicon. This issue is about mac.