CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles“

When using cmake to install mbedtls, there were really too many problems. I finally got it done with tears in my eyes. Among them, I executed the command

cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On .

, always reporting an error. The error is
CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set
, after EnableLanguage
– Conf iguring incomplete, errors occurred !
See also “/home/dml/dml/repo/mbedtls/CMakeFiles/CMakeOutput.log”.

I’m really going crazy. I tried all kinds of methods, but I couldn’t find the exact same problem. I also looked for For no reason, I had to try them one by one.
At first, try typing various commands, believe me, nothing works. Later, I saw that the version of cmake might be wrong, and I downloaded and installed cmake again. Believe me, it still didn’t work. Finally, I installed make on a whim, and then I saw the hope of victory.

sudo apt install make

Guess you like

Origin blog.csdn.net/weixin_44906810/article/details/105477448