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

[Modular CLI]: Install fails on Mac with M2 Max CPU #1123

Closed
kkrugler opened this issue Oct 20, 2023 · 8 comments
Closed

[Modular CLI]: Install fails on Mac with M2 Max CPU #1123

kkrugler opened this issue Oct 20, 2023 · 8 comments
Labels
mojo Issues that are related to mojo mojo-repo Tag all issues with this label

Comments

@kkrugler
Copy link

Issue description

I'm trying to install Mojo on my Mac, following instructions at https://developer.modular.com/download after I've logged into my account, but the install fails.

Steps to reproduce

Running curl https://get.modular.com | sh - && modular auth <auth token> results in:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3885  100  3885    0     0  20581      0 --:--:-- --:--:-- --:--:-- 20775
Updating Homebrew
Already up-to-date.
Installing/upgrading Modular using Homebrew
modular: The arm64 architecture is required for this software.
Error: modular: An unsatisfied requirement failed this build.

Version Info

Mac running 13.5, with M2 Max CPU.
@aespeiuk22
Copy link

go to applications folder, select terminal app, under its options, uncheck Rosetta and try. Got the same issue fixed earlier.

@kkrugler
Copy link
Author

Thanks - but my Open using Rosetta option currently isn't checked.

@aespeiuk22
Copy link

please try the discord. you get more people to look into this.

@aespeiuk22
Copy link

@kkrugler
Copy link
Author

Thanks @aespeiuk22! I found a discussion on Discord that referenced #1078, and it looks like the issue is that my homebrew was installed for Intel. So I have to uninstall and re-install it :( That would be really useful information to include on the page about setting up Mojo on a newer Mac...

@aespeiuk22
Copy link

@jackos Please note.

@jackos
Copy link
Collaborator

jackos commented Oct 21, 2023

Hi @kkrugler yes has been a common issue, we should include an error message, uninstalling and reinstalling is the way to fix: https://github.com/Homebrew/install#uninstall-homebrew

@bzcheeseman @zbowling fyi lots of users have x86 homebrew installed on their arm64 machine, can we guide them to the above instructions in that scenario or just show the steps to uninstall and reinstall?

@kkrugler
Copy link
Author

Hi @jackos - thanks, that worked! Though I had to edit the brew-uninstall.sh script to get it to work, my (ancient) brew install was located at /usr/local/homebrew, and I had to manually remove this directory when the uninstall was finished.

@ematejska ematejska added the mojo-repo Tag all issues with this label label May 6, 2024
@ematejska ematejska added the mojo Issues that are related to mojo label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mojo Issues that are related to mojo mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

4 participants