trying to download brew in Big Sur:->arch: posix_spawnp: /bin/bash: Bad CPU type in executable

how to fix this????

Hi, could you please provide the commands to run in order to reproduce this error?

see comment above for the command and other details.

Same error when using latest Apple MacBook Pro M1 silicon with Monterey. Here is the command:

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Ref: During installing of Pyenchant on Mac, I get the error "cannot find enchant library" so I used this command after removing default home-brew setup in /opt/homebrew and installing it in /usr area as suggested here:

https://pyenchant.github.io/pyenchant/install.html#installing-the-enchant-c-library

It worked on Apple silicon Big Sur M1 silicon earlier - I could import enchant library and spell check.

trying to download brew in Big Sur:->arch: posix_spawnp: /bin/bash: Bad CPU type in executable
 
 
Q