Live data from Hacker News

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

notion.so

141–148 of 148 posts

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

#141
post #94

Earlier quoted context omitted.

AS has support for virtualisation so VirtualBox will probably make it, but most likely only for running operating systems that run on ARM. There's very little preventing VB for being used as a tool to run the ARM versions of Linux or your favourite flavour of BSD, but Windows probably won't work (not until MS releases a download for Windows on ARM, at least). So, VirtualBox itself will work, but using it to run Windo…

VirtualBox won't be ported to any Arm64 platform, Oracle explicitly said that they wouldn't do it. However, Parallels and VMWare Fusion will. You'll also have other solutions around. Also, no App Store requirement on macOS at all.

> You'll also have other solutions around.

What are they?

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

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

Seemed to work fine for me... I'm now trying to install both versions of brew and spin up terminal sessions accordingly.

Are these 'good practices' for Arm Macs?:

1) When spinning up an iTerm session, figure out if it's 'Darwin x86_64' or 'Darwin arm64' - and configure paths accordingly. so they use the right brew binaries.

2) Easily double check what version of a running package/keg based on what arch is displayed in Activity Monitor.

3) That way, you can just use brew with Rosetta to start (which I did) then build up native arm Brew over time. and let the Rosetta brew fall away.

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

#143

Earlier quoted context omitted.

I'm glad I'm not the only one hating homebrew. It's become very anti-user in the past few years under the new maintainers. Even the original maintainer has said publicly that he doesn't like the direction the new maintainers took homebrew. All the changes the current maintainers of homebrew have made have been in the direction of "make maintaining homebrew easier so we get less questions" without any thought to the u…

> without any thought to the user experience those changes cause. Sorry you get that impression. As one of the maintainers, my impression is that each decision happens in good faith, and usually follows a controversial discussion, which puts user experience on par with maintainers’s well-being. Examples off the top of my head: [1]: https://github.com/Homebrew/brew/pull/9172#issuecomment-7299... [2]: https://github.co…

It's comments like this one that cause these feelings : https://github.com/Homebrew/brew/issues/7857#issuecomment-65...

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

#144
I'm trying to run some python code (from Pycharm). Since the specific version of tensorflow i need is not compatible with M1, I already get stuck at import tensorflow. How can i tell my mac to Rosetta 2? I know when I want to run something specific from the terminal, I can use "arch -x86_64"... but what do I do here?

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

#146
post #46

Earlier quoted context omitted.

macports is a better homebrew-killer IMHO. Follows MacOS guidelines and frameworks, integrates with the MacOS way in terms of launch agents etc.

What we need is a cross platform package manager that installs stuff in the same place and make stuff behave the same, so shell configs can be unified between OS and not have "if" all over and expect same environments. nix is almost that, except some packages are too old but otherwise, I have it running identically on macOS and Linux. Homebrew puts stuff in some weird location that is /home/linuxbrew/.linuxbrew/ on L…

> No idea why they don't just use a path like /opt/homebrew/ for both OS and be done with it.

We’re now using `/opt/homebrew` for the (still experimental) ARM native Homebrew flavour.

On Linux, you’re free to choose whatever prefix you like. On Linux, Homebrew always builds from source, no matter the prefix.

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

#148
post #117
post #115

Earlier quoted context omitted.

I haven't tried this (don't have an M1 to hand!) but: iterm2 -> Preferences -> Profiles -> General Change the "Login Shell" drop down to "Command" and then enter `arch -x86_64 /usr/local/bin/zsh` or whatever your shell is.

Would `arch -x86_64 $SHELL` work?

Just tried and it works :) .. Nice.
Post reply on HN