Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
2

It looks like you don't have gcc installed.


In case you specifically need gcc-7, you can install it with


sudo apt install gcc-7

Otherwise you can install the package gcc or build-essential(which would provide a later version of gcc).


In case this program bootstrap wants to have gcc-7 at the specific location /usr/local/bin/ and that cannot be changed, you can symlink it.


sudo ln -s /usr/bin/gcc-7 /usr/local/bin/gcc-7

[#1536] Friday, January 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elopingapo

Total Points: 206
Total Questions: 110
Total Answers: 114

Location: Guam
Member since Tue, Nov 29, 2022
1 Year ago
elopingapo questions
Fri, Sep 10, 21, 17:52, 3 Years ago
Tue, May 24, 22, 00:42, 2 Years ago
Sat, Apr 23, 22, 03:16, 2 Years ago
Sat, Jun 11, 22, 10:16, 2 Years ago
;