Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run the Homebrew installer under Rosetta 2? #9173

Closed
72L opened this issue Nov 17, 2020 · 6 comments
Closed

How do I run the Homebrew installer under Rosetta 2? #9173

72L opened this issue Nov 17, 2020 · 6 comments

Comments

@72L
Copy link

72L commented Nov 17, 2020

Bug report

  • [ N/A ] ran brew update and can still reproduce the problem?
  • [ N/A ] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [ N/A ] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

I am trying to install Homebrew.

What happened (include command output)

I ran:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Command output

Homebrew is not (yet) supported on ARM processors!
Rerun the Homebrew installer under Rosetta 2.
If you really know what you are doing and are prepared for a very broken experience you can use another installation option for installing on ARM:
https://docs.brew.sh/Installation

What you expected to happen

I expected it to install successfully, or give me more detailed instructions for this sentence: "Rerun the Homebrew installer under Rosetta 2."

Step-by-step reproduction instructions (by running brew commands)

  1. Use a new MacBook with Apple Silicon M1 chip.
  2. Try to install homebrew

Output of brew config and brew doctor commands

N/A
@Mootzy
Copy link

Mootzy commented Nov 17, 2020

Trying to attempt the same

@andresavic
Copy link

andresavic commented Nov 17, 2020

https://docs.brew.sh/Installation

cd /opt
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
sudo chown -R $(whoami) /opt/homebrew

sudo nano /etc/path

Add this two paths

/opt/homebrew/bin
/opt/homebrew/opt

Restarting terminal and brew update

I don't know if this is the right solution but it is working fine. I just have issues with specific formulas like "gpg"

@claui
Copy link
Contributor

claui commented Nov 17, 2020

There’s a PR in progress to explain exactly that in more detail.

From the PR (referring to installing a formula):

To use it, you can choose between:

  • running your Terminal from Rosetta 2
  • running arch -x86_64 brew instead of brew.

To install Homebrew itself, you can run arch -x86_64 /bin/bash instead of /bin/bash.
To configure Terminal to run under Rosetta 2, select Terminal.app in Finder, hit ⌘I, select Open with Rosetta, then restart your Terminal.

@claui claui closed this as completed Nov 17, 2020
@medweb2020
Copy link

I tried to do the same but it's not working it opens a file for me in the terminal when I write the commands can you please help me I'm behind my projects and I need to get back to work asap. the m1 ship is holding all my work

@andresavic
Copy link

@medweb2020 This is the full command to install Homebrew under Rosetta 2
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

@claui
Copy link
Contributor

claui commented Nov 18, 2020

can you please help me I'm behind my projects and I need to get back to work asap. the m1 ship is holding all my work

@medweb2020 If you need support, please go to our Discourse and ask your questions there: https://discourse.brew.sh

I feel your pain. But GitHub issues are a space for reporting bugs and proposing features, and we absolutely need it to stay that way so we have a chance to do our work properly. I must insist that you please stop asking for support on GitHub issues.

@Homebrew Homebrew locked as resolved and limited conversation to collaborators Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants