Link to home
Start Free TrialLog in
Avatar of jgordin
jgordin

asked on

error: Cannot find cmake, ensure it is installed and in the path

hi

error: Cannot find cmake, ensure it is installed and in the path

How do I fix that problem?

Thanks
Avatar of gelonida
gelonida
Flag of France image

You have to install Cmake.

What OS are you running on. Installing CMake can be installed for windows or linux.
However for windows you also have to be sure to have a compiler and all the required C files and header files for the project that you try to install.
Installing modules, that need compilation under windows can be a little frustrating. Under linux there are asome pitfalls  but it's normally easier.

What exactly do you try to install?
Are you sure, that there isno ready made binary version available?
1. Attaching the document to install cmake.exe at windows using cygwin
2. Verify PATH environment variable having the directory of cmake.exe or cmake
Example using bash:
$ /usr/bin/which cmake
/bin/cmake
$ echo $PATH | /usr/bin/tr ":" "\n" | /bin/grep -E "^\/bin"
/bin

Open in new window

Since /bin directory present in PATH environment variable hence /usr/bin/which command displaying related path.

@Windows
     Press windows r
C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables

Open in new window

    Check Path environment variable there.
Open C:\Windows\System32\cmd.exe
C:\Users\Public> CD %USERPROFILE%
C:\Users\murugesandins> DIR/S /B cmake.exe
C:\Users\murugesandins\cygwin\bin\cmake.exe
C:\Users\murugesandins>

Open in new window

cygwin_cmake_installation.docx
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.