Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: minikube: command not found

I'm trying to follow Install Minikube and even though there are no errors during install, I still unable to run it:

$ brew install minikube
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/minikube-1.5.2.catalina.bottle.tar.gz
Already downloaded: /Users/alexus/Library/Caches/Homebrew/downloads/a466d3b5c7208788bb6a82fa4de4576440dbfa3b7b5b1d4ddb48cb9a3d44f1e9--minikube-1.5.2.catalina.bottle.tar.gz
==> Pouring minikube-1.5.2.catalina.bottle.tar.gz
==> minikube cask is installed, skipping link.
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/minikube/1.5.2: 8 files, 51.5MB
$ minikube
-bash: minikube: command not found
$ 

Please advise.


$ sudo mv minikube /usr/local/bin
Password:
mv: rename minikube to /usr/local/bin/minikube: No such file or directory
$ 

minikube version:

$ /usr/local/Cellar/minikube/1.5.2/bin/minikube version
minikube version: v1.5.2
commit: 792dbf92a1de583fcee76f8791cff12e0c9440ad
$ 
like image 777
alexus Avatar asked Nov 15 '19 18:11

alexus


People also ask

How do I set up minikube?

Download and run the installer for the latest release. Add the minikube.exe binary to your PATH . Make sure to run PowerShell as Administrator. If you used a terminal (like powershell) for the installation, please close the terminal and reopen it before running minikube.

What does the command minikube start do?

The minikube start command can be used to start your cluster. This command creates and configures a virtual machine that runs a single-node Kubernetes cluster. This command also configures your kubectl installation to communicate with this cluster.


3 Answers

Try using

brew link minikube

which solved the issue for me. After installing minikube using Homebrew (brew install minikube) we need to run the above command which will create symlinks for us. Then the minikube command works fine.

like image 82
Sathishkumar Rakkiyasamy Avatar answered Oct 16 '22 10:10

Sathishkumar Rakkiyasamy


This looks like an issue with your path:

  • Restart the terminal.
  • Did you add minikube to the path per the documentation?

Here’s an easy way to add the Minikube executable to your path: sudo mv minikube /usr/local/bin

  • Verify the path with which minikube.

Edited to address new info in questions:

This is still a path issue. It appears that your install went to /usr/local/Cellar/minikube/1.5.2 not /usr/local/bin/minikube. The different aliases are looking for the latter directory which is why this is not working for you. You should move the directory as per the documentation so that the scripts with the various shortcuts can find the proper link.

like image 36
Wesley Rolnick Avatar answered Oct 16 '22 09:10

Wesley Rolnick


my way of solving this:

$ cd /usr/local/Cellar/minikube/
$ sudo ln -s 1.5.2 current
Password:
$ cd /usr/local/bin/
$ ln -s /usr/local/Cellar/minikube/current/bin/minikube 
$ 
$ minikube version
minikube version: v1.5.2
commit: 792dbf92a1de583fcee76f8791cff12e0c9440ad
$ 
like image 1
alexus Avatar answered Oct 16 '22 11:10

alexus