0

I have installed the latest cmake in my MacBook.I also input "brew link cmake". But it still display :

zsh: command not found: cmake

How can I fix it?

Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
  • Does this answer your question? [Adding home-brew to PATH](https://stackoverflow.com/questions/35677031/adding-home-brew-to-path) – joanis Jun 24 '22 at 15:47

1 Answers1

0

If you shell (zsh) cannot find the command for cmake, and if you are sure to have installed the cmake command, then you probably just need to add the path to the cmake command to your PATH environment variable.

There are multiple questions on StackOverflow that explain ways of doing that, such as this very detailed explanation here.

cmousset
  • 625
  • 7
  • 21