'Install Cloud Foundry CLI in a M1 chip MacBook
tl;dr The Cloud Foundry CLI fails to install in an M1 chip MacBook Pro.
Following the official instructions, using Homebrew in the command:
$ brew install cloudfoundry/tap/cf-cli@8
The output is:
cf-cli@8: The x86_64 architecture is required for this software.
Error: cf-cli@8: An unsatisfied requirement failed this build.
Found no binary for the ARM-based architecture of the Apple M1 chip. The same trying with cf-cli@7
, or just cf-cli
.
How can the Cloud Foundry CLI be installed in an ARM-based architecture?
Solution 1:[1]
The official GitHub project cloudfoundry/cli
includes binaries for many architectures, including ARM-based.
Search in the official Releases page, Assets section, and download the binary of the item named cf-cli_osx_arm (currently v8.3.0). Once downloaded, move/rename to any folder included in your PATH environment variable.
Solution 2:[2]
There's an open issue for this.
Until the official tap supports the osx_arm binary, you can use this unofficial tap which is manually updated:
brew install wanddynosios/tap/cf-cli
That said, it seems like the official CloudFoundry maintainers are about to support this officially soon.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | fabianopinto |
Solution 2 | Rob van Groenewoud |