<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>
    
    




    
            

<div class="ExternalClass" id="MsgContainer"><meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
I'm trying to install cmake. I downloaded it from the cmake.org
website. Then I changed the directory to the location of the source.
Then I typed ./bootstrap in the terminal and I got this error.<br><br>Error when bootstrapping CMake:<br>Cannot find appropriate C compiler on this system.<br>Please specify one using environment variable CC.<br>See cmake_bootstrap.log for compilers attempted.<br><br>---------------------------------------------<br>Log of errors: /home/xxx/CMake/Bootstrap.cmk/cmake_bootstrap.log<br><br>I tried typing <br>CC="gcc" ./bootstrap <br>but it still didn't work.<br><br>Can someone tell me how to fix this error. I'm working on ubuntu.<br><br>Here is the cmake_bootstrap.log:<br>Try: cc<br>Line: cc&nbsp; cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test<br>----------&nbsp; file&nbsp;&nbsp; -----------------------<br>#ifdef __cplusplus<br># error "The CMAKE_C_COMPILER is set to a C++ compiler"<br>#endif<br><br>#include&lt;stdio.h&gt;<br><br>#if defined(__CLASSIC_C__)<br>int main(argc, argv)<br>&nbsp; int argc;<br>&nbsp; char* argv[];<br>#else<br>int main(int argc, char* argv[])<br>#endif<br>{<br>&nbsp; printf("%d\n", (argv != 0));<br>&nbsp; return argc-1;<br>}<br>------------------------------------------<br>cmake_bootstrap_8199.test.c:5:18: error: stdio.h: No such file or directory<br>cmake_bootstrap_8199.test.c: In function ‘main’:<br>cmake_bootstrap_8199.test.c:15: warning: incompatible implicit declaration of built-in function ‘printf’<br>Test failed to compile<br>Try: gcc<br>Line: gcc&nbsp; cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test<br>----------&nbsp; file&nbsp;&nbsp; -----------------------<br>#ifdef __cplusplus<br># error "The CMAKE_C_COMPILER is set to a C++ compiler"<br>#endif<br><br>#include&lt;stdio.h&gt;<br><br>#if defined(__CLASSIC_C__)<br>int main(argc, argv)<br>&nbsp; int argc;<br>&nbsp; char* argv[];<br>#else<br>int main(int argc, char* argv[])<br>#endif<br>{<br>&nbsp; printf("%d\n", (argv != 0));<br>&nbsp; return argc-1;<br>}<br>------------------------------------------<br>cmake_bootstrap_8199.test.c:5:18: error: stdio.h: No such file or directory<br>cmake_bootstrap_8199.test.c: In function ‘main’:<br>cmake_bootstrap_8199.test.c:15: warning: incompatible implicit declaration of built-in function ‘printf’<br>Test failed to compile<br>Try: xlc<br>Line: xlc&nbsp; cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test<br>----------&nbsp; file&nbsp;&nbsp; -----------------------<br>#ifdef __cplusplus<br># error "The CMAKE_C_COMPILER is set to a C++ compiler"<br>#endif<br><br>#include&lt;stdio.h&gt;<br><br>#if defined(__CLASSIC_C__)<br>int main(argc, argv)<br>&nbsp; int argc;<br>&nbsp; char* argv[];<br>#else<br>int main(int argc, char* argv[])<br>#endif<br>{<br>&nbsp; printf("%d\n", (argv != 0));<br>&nbsp; return argc-1;<br>}<br>------------------------------------------<br>./bootstrap: 553: xlc: not found<br>Test failed to compile<br>Try: icc<br>Line: icc&nbsp; cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test<br>----------&nbsp; file&nbsp;&nbsp; -----------------------<br>#ifdef __cplusplus<br># error "The CMAKE_C_COMPILER is set to a C++ compiler"<br>#endif<br><br>#include&lt;stdio.h&gt;<br><br>#if defined(__CLASSIC_C__)<br>int main(argc, argv)<br>&nbsp; int argc;<br>&nbsp; char* argv[];<br>#else<br>int main(int argc, char* argv[])<br>#endif<br>{<br>&nbsp; printf("%d\n", (argv != 0));<br>&nbsp; return argc-1;<br>}<br>------------------------------------------<br>./bootstrap: 553: icc: not found<br>Test failed to compile<br>Try: tcc<br>Line: tcc&nbsp; cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test<br>----------&nbsp; file&nbsp;&nbsp; -----------------------<br>#ifdef __cplusplus<br># error "The CMAKE_C_COMPILER is set to a C++ compiler"<br>#endif<br><br>#include&lt;stdio.h&gt;<br><br>#if defined(__CLASSIC_C__)<br>int main(argc, argv)<br>&nbsp; int argc;<br>&nbsp; char* argv[];<br>#else<br>int main(int argc, char* argv[])<br>#endif<br>{<br>&nbsp; printf("%d\n", (argv != 0));<br>&nbsp; return argc-1;<br>}<br>------------------------------------------<br>./bootstrap: 553: tcc: not found<br>Test failed to compile<br><br></div><div><font size="3"></font>&nbsp;<BR></div><br><br><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>