<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Trebuchet MS">I follow the instructions of Install page
(<a class="moz-txt-link-freetext"
 href="http://cmake.org/HTML/Install.html">http://cmake.org/HTML/Install.html</a>)
and with cmake 2.4.7 downloaded
and untar I run "cmake ."<br>
but it shows this:<br>
<br>
# cmake .<br>
-- Check for working C compiler: /usr/bin/gcc<br>
-- Check for working C compiler: /usr/bin/gcc -- broken<br>
The C compiler "/usr/bin/gcc" is not able to compile a simple test
program.<br>
It fails with the following output:<br>
&nbsp;/usr/bin/cmake -H/usr/src/cmake-2.4.7/CMakeTmp
-B/usr/src/cmake-2.4.7/CMakeTmp --check-build-system
CMakeFiles/Makefile.cmake 0<br>
/usr/bin/make -f CMakeFiles/Makefile2 cmTryCompileExec<br>
make[1]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
/usr/bin/cmake -H/usr/src/cmake-2.4.7/CMakeTmp
-B/usr/src/cmake-2.4.7/CMakeTmp --check-build-system
CMakeFiles/Makefile.cmake 0<br>
/usr/bin/make -f CMakeFiles/Makefile2
CMakeFiles/cmTryCompileExec.dir/all<br>
make[2]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/depend<br>
make[3]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
Scanning dependencies of target cmTryCompileExec<br>
/usr/bin/cmake -E cmake_depends&nbsp; "Unix Makefiles"
/usr/src/cmake-2.4.7/CMakeTmp /usr/src/cmake-2.4.7/CMakeTmp
/usr/src/cmake-2.4.7/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/DependInfo.cmake<br>
make[3]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build<br>
make[3]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o<br>
/usr/bin/gcc&nbsp; -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o&nbsp;&nbsp; -c
/usr/src/cmake-2.4.7/CMakeTmp/testCCompiler.c<br>
Linking C executable cmTryCompileExec<br>
/usr/bin/cmake -E remove -f cmTryCompileExec<br>
/usr/bin/gcc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -fPIC
"CMakeFiles/cmTryCompileExec.dir/testCCompiler.o"&nbsp;&nbsp; -o cmTryCompileExec
-rdynamic<br>
/usr/bin/ld: crt1.o No hay tal fichero: No existe el fichero &oacute;
directorio<br>
collect2: ld devolvi&oacute; el estado de salida 1<br>
make[3]: *** [cmTryCompileExec] Error 1<br>
make[3]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
make[2]: *** [CMakeFiles/cmTryCompileExec.dir/all] Error 2<br>
make[2]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/rule] Error 2<br>
make[1]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'<br>
make: *** [cmTryCompileExec] Error 2<br>
<br>
<br>
CMake will not be able to correctly generate this project.<br>
CMake Error: your CXX compiler: CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND
was not found in your path.&nbsp;&nbsp; For CMake to correctly use try compile
commands, the compiler must be in your path.&nbsp;&nbsp; Please add the compiler
to your PATH environment, and re-run CMake.<br>
-- Configuring done<br>
<br>
<br>
<br>
I have gcc and I have used it many times:<br>
<br>
# gcc -v<br>
Usando especificaciones internas.<br>
Objetivo: i486-linux-gnu<br>
Configurado con: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk-default
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --with-tune=pentium4
--enable-checking=release i486-linux-gnu<br>
Modelo de hilos: posix<br>
gcc versi&oacute;n 4.0.3 (Ubuntu 4.0.3-1ubuntu5)<br>
<br>
<br>
<br>
The environments variables seems well:<br>
<br>
# env | grep cc<br>
CC=/usr/bin/gcc<br>
</font>
</body>
</html>