4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 8675
/ 1 Year ago, fri, january 13, 2023, 6:41:11
i got this error when using ./bootstrap
command for installing cmake
---------------------------------------------
CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors
---------------------------------------------
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.
i checked for gcc and got
gcc --version
bash: /usr/bin/gcc: No such file or directory
whereis gcc
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
i checked cmake_bootstrap.log
file and got
./bootstrap: 803: ./bootstrap: /usr/local/bin/gcc-7: not found
Test failed to compile
More From » gcc