尽管安装了 gcc 和 g++,但 cmake 仍找不到 c 编译器

尽管安装了 gcc 和 g++,但 cmake 仍找不到 c 编译器

我正在使用 Ubuntu 18.04,并尝试cmake通过执行以下命令进行安装:

./bootstrap

但我收到了一个错误:

Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.

我安装gccg++4.8.5 版本。当我运行:

sudo./bootstrap

我收到以下错误:

CMake 3.19.0, Copyright 2000-2020 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc   
C++ compiler on this system is: g++  -std=gnu++1y  
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.

请帮我解决这个错误并安装cmake

答案1

make安装前您需要安装cmake

sudo apt install make

相关内容