How can I install minikube on Mac OS Catalina

2020-07-11 09:13发布

问题:

The provided methods on the Kubernetes documentation don't work and brew cask no longer seems to have the minikube formulae as of Mac OS Catalina.

Error: Cask 'minikube' is unavailable: No Cask with this name exists.

When I download it with curl it refuses to run with the following error.

/bin/minikube: cannot execute binary file: Exec format error

How can I install minikube on Mac OS Catalina. Or do I have to rollback to Mojave?

回答1:

Minikube is no longer available as a cask.

Change command

brew cask install minikube

to

brew install minikube

or use

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
 && sudo install minikube-darwin-amd64 /usr/local/bin/minikube


回答2:

The provided methods on the Kubernetes documentation don't work and brew cask no longer seems to have the minikube formulae as of Mac OS Catalina.

Error: Cask 'minikube' is unavailable: No Cask with this name exists.

Minikube is no longer available as a cask. You can install it with brew install minikube.

When I download it with curl it refuses to run with the following error.

/bin/minikube: cannot execute binary file: Exec format error

An Exec format error might indicate that you're trying to execute a file that is not intended to be executed (e.g. a plain text file). Make sure the /bin/minikube file is actually a binary (you can test with file /bin/minikube, it should print 'Mach-O Executable')