Azure / Azure/azure-cli

Installing azure-cli fails with Rosetta 2 error

Open
#21,747 1 comment 0 reactions 1 assignee Assigned to @jiasli View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
Trying to install azure-cli on Mac with M1 chip, fails with error "Cannot install under Rosetta 2"

**To Reproduce**
Open Terminal, enter brew install azure-cli. Following error occurs:

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

I then run the install using arch -arm64 brew install azure-cli but this fails with the following error:

Error: azure-cli dependencies not built for the arm64 CPU architecture:
ca-certificates was built for x86_64

**Expected behavior**
I expect azure-clu to install.

**Environment summary**
See above.

**Additional context**
Using a Macbook with M1 chip.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.