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

在运用cmake安装mbedtls时,真的是问题太多了,终于含着泪把它弄好了,其中在执行命令

cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On .

时,一直报错。错误为
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
– Configuring incomplete, errors occurred!
See also “/home/dml/dml/repo/mbedtls/CMakeFiles/CMakeOutput.log”.
CMake Error: CMake was unable to find a build program corresponding to
我真的快疯了,尝试了各种各样的办法,但是找不到一模一样的问题啊,我也找不到原因,只能自己一个一个试了。
刚开始,尝试敲各种各样的命令,相信我,并没有任何作用。后来,又看到说可能是cmake的版本错了,又重新下载安装cmake,相信我,依然没有用,最后,我突发奇想安装了make,然后我看到了胜利的希望

sudo apt install make

你可能感兴趣的:(Linux,物联网安全,cmake,linux)