Live data from Hacker News

Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

notion.so

1–10 of 148 posts

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#2
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.

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#3
Huh, 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

#4

Huh, 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?).

In the PPC -> x86 transition, the same hard drive could be used to boot both PPC and x86 Macs (e.g. via target disk mode or external HDDs)

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#8

There'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... )"

Does this make brew compile subsequent binaries in x86 though? Or is it purely cosmetic.

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#9
post #8

There'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... )"

Does this make brew compile subsequent binaries in x86 though? Or is it purely cosmetic.

Homebrew maintainer here. We don’t officially support Big Sur yet, but installing it via Rosetta will cause it to fetch x86 bottles instead of ARM ones. At least, that’s the plan.

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#10
post #8

Earlier quoted context omitted.

Does this make brew compile subsequent binaries in x86 though? Or is it purely cosmetic.

Homebrew maintainer here. We don’t officially support Big Sur yet, but installing it via Rosetta will cause it to fetch x86 bottles instead of ARM ones. At least, that’s the plan.

Ah.. I've extracted homebrew manually and it's been compiling ARM binaries for me - which is what I wanted it to do.
Post reply on HN