Zsh: bad CPU type in executable: mongo

Hi,

Trying to install mongo shell on Apple Mac M1 - Bigsur 11.2

Did anyone see this before “zsh: bad CPU type in executable: mongo”

can anyone help me please.

Thanks,
Aravind.

1 Like

I do not think that the new processor of the M1 is supported yet. Check on MongoDB Developer Community Forums for verification.

What is your default shell?
If it is not zsh try to switch to it and try

If you are in zsh then it could be version compatibilty issue like [steevej-1495] mentioned.
In some cases 32 bit vs 64 bit also cause issues
Check this links.May help

https://discussions.apple.com/thread/250777998

Hi @Aravind_Adla,

This is an older question but I wanted to note that although MongoDB does not run natively on M1 processors at the moment, you can use macOS’ Rosetta Translation Environment to run the Intel binaries. If you don’t have Rosetta installed, I believe you should be prompted to install this the first time you try to run an Intel binary.

Follow the standard Install MongoDB Community Edition on macOS guide to install MongoDB server & tools via the Homebrew package manager. The only other requirement is that you have installed Rosetta (which is a one-off installation if you want to run any Intel apps).

Regards,
Stennie

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.