[CMake] intalling cmake

shoosh moosh babygirl_25 at hotmail.com
Fri Nov 14 04:13:44 EST 2008




    
    




    
            




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.

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.

---------------------------------------------
Log of errors: /home/xxx/CMake/Bootstrap.cmk/cmake_bootstrap.log

I tried typing 
CC="gcc" ./bootstrap 
but it still didn't work.

Can someone tell me how to fix this error. I'm working on ubuntu.

Here is the cmake_bootstrap.log:
Try: cc
Line: cc  cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test
----------  file   -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d\n", (argv != 0));
  return argc-1;
}
------------------------------------------
cmake_bootstrap_8199.test.c:5:18: error: stdio.h: No such file or directory
cmake_bootstrap_8199.test.c: In function ‘main’:
cmake_bootstrap_8199.test.c:15: warning: incompatible implicit declaration of built-in function ‘printf’
Test failed to compile
Try: gcc
Line: gcc  cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test
----------  file   -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d\n", (argv != 0));
  return argc-1;
}
------------------------------------------
cmake_bootstrap_8199.test.c:5:18: error: stdio.h: No such file or directory
cmake_bootstrap_8199.test.c: In function ‘main’:
cmake_bootstrap_8199.test.c:15: warning: incompatible implicit declaration of built-in function ‘printf’
Test failed to compile
Try: xlc
Line: xlc  cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test
----------  file   -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d\n", (argv != 0));
  return argc-1;
}
------------------------------------------
./bootstrap: 553: xlc: not found
Test failed to compile
Try: icc
Line: icc  cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test
----------  file   -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d\n", (argv != 0));
  return argc-1;
}
------------------------------------------
./bootstrap: 553: icc: not found
Test failed to compile
Try: tcc
Line: tcc  cmake_bootstrap_8199.test.c -o cmake_bootstrap_8199.test
----------  file   -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d\n", (argv != 0));
  return argc-1;
}
------------------------------------------
./bootstrap: 553: tcc: not found
Test failed to compile

 


_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081114/607d976e/attachment.htm>


More information about the CMake mailing list