can't install homebrew

Why can't I install homebrew on m1 mac? I've already tested with rosetta and native and both are not okay. I used this command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)".

I used VPN while installing. Help me finding solution ,Thank you!



Posted on Apr 22, 2021 5:00 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 22, 2021 5:37 AM

Do not install homebrew during a VPN session. Homebrew v3+ is what you need for an M1 Mac, and it uses /opt/homebrew for the installation location, not /usr/local which is legacy for x86_64 packages on Intel Macs.


My homebrew v3.1.2 is installed on my M1 mini and package builds are arm64.

5 replies

Apr 22, 2021 7:48 AM in response to tunlyinaung

A VPN as fine as long as proxies are not needed. If you have to specify proxies, then Homebrew needs some environment variables for the Terminal environment.


export  http_proxy=http://url.of.proxy.server:nnnn # where nnnn is the proxy server port number
export  https_proxy=http://url.of.proxy.server:nnnn # where nnnn is the proxy server port number


But this is ONLY necessary if your VPN requires you setup proxy information when using the VPN. Generally this is not the case for home VPN users, but it is very common for employees that have to VPN into their corporate network which isolates the corporate internal network behind a corporate firewall, and the proxy server is needed to get out to the public Internet.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

can't install homebrew

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.