Live data from Hacker News

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

notion.so

11–20 of 148 posts

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

#11
post #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.

It doesn’t look like it’s fully baked yet.

https://github.com/Homebrew/brew/issues/7857

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

#12
post #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.

It doesn’t look like it’s fully baked yet. https://github.com/Homebrew/brew/issues/7857

Yes I received very specific warning that I'm in uncharted waters.

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

#13

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

I good case where this would be necessary is if anything has in process plugins - I saw at least one review where the person had to restart their app (final cut maybe?) because the codec was an x86 binary - which it seemed to do more or less automatically.

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

#14

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

Everything Apple’s responsible for is a Universal (or fat) binary.

You can boot either architecture from a Big Sur drive.

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

#16
post #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.

No, not even close. There is more that doesn't work than works. Of what I use, all I got was python3 and git. But no python3.8, no ffmpeg, no erlang, no gnutls, and on and on.

https://github.com/Homebrew/brew/issues/7857

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

#17
post #5

Please don't hijack the arrow keys on web pages. People use them to scroll. Apologies for being off-topic.

No worries. I use Notion for a lot of stuff and I just wanted to quickly throw something up on the web just in case it could help someone.

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

#19

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

Awesome! I didn't know that.

Thanks for sharing that will definitely come in handy!

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

#20
post #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.

Keep in mind that if you're using a Homebrew version of something Apple ships with macOS, for now, you'll get x86-64 binaries while Apple's version is a universal app and will run natively on the M1.

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.
Post reply on HN