That's not needed though, I manually extracted brew to /opt/homebrew per https://docs.brew.sh/Installation , and it works just fine in the native terminal. file htop returns htop: Mach-O 64-bit executable arm64 So this version of brew is compiling native arm64 code.
Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
11–20 of 148 posts
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#12That's not needed though, I manually extracted brew to /opt/homebrew per https://docs.brew.sh/Installation , and it works just fine in the native terminal. file htop returns htop: Mach-O 64-bit executable arm64 So this version of brew is compiling native arm64 code.
It doesn’t look like it’s fully baked yet. https://github.com/Homebrew/brew/issues/7857
But I still wanted ARM binaries, the ones I did (htop, imagemagick, tmux etc) all worked.
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#13Huh, so Apple is installing both the ARM and x86 version of apps, even on ARM computers. I guess that makes sense for portability, but I don't know if other parts of the root filesystem are one architecture only, such as the path to the kernel (unless that's a fat binary too?).
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#14Huh, so Apple is installing both the ARM and x86 version of apps, even on ARM computers. I guess that makes sense for portability, but I don't know if other parts of the root filesystem are one architecture only, such as the path to the kernel (unless that's a fat binary too?).
You can boot either architecture from a Big Sur drive.
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#15Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#16That's not needed though, I manually extracted brew to /opt/homebrew per https://docs.brew.sh/Installation , and it works just fine in the native terminal. file htop returns htop: Mach-O 64-bit executable arm64 So this version of brew is compiling native arm64 code.
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#17Please don't hijack the arrow keys on web pages. People use them to scroll. Apologies for being off-topic.
Sorry it is not as accessible but I don't have a blog I own that I can make that kind of design decision on.
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#18Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#19There's also the "arch" command, to run commands under rosetta2 I just installed Homebrew on my new m1 MacBook Air with: $ arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in... )"
Thanks for sharing that will definitely come in handy!
Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon
#20That's not needed though, I manually extracted brew to /opt/homebrew per https://docs.brew.sh/Installation , and it works just fine in the native terminal. file htop returns htop: Mach-O 64-bit executable arm64 So this version of brew is compiling native arm64 code.
Zsh from Homebrew: /usr/local/bin/zsh: Mach-O 64-bit executable x86_64
Apple's Zsh:
/bin/zsh: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit
executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/bin/zsh (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/zsh (for architecture arm64e): Mach-O 64-bit executable arm64e
The Homebrew team is making progress; I've been seeing Big Sur "bottles" for a couple of days now.