[CMake] help installing cmake
Alex Dantart
alex at sync.es
Wed Aug 8 03:16:23 EDT 2007
I follow the instructions of Install page
(http://cmake.org/HTML/Install.html) and with cmake 2.4.7 downloaded and
untar I run "cmake ."
but it shows this:
# cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
/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
/usr/bin/make -f CMakeFiles/Makefile2 cmTryCompileExec
make[1]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'
/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
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/cmTryCompileExec.dir/all
make[2]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/depend
make[3]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'
Scanning dependencies of target cmTryCompileExec
/usr/bin/cmake -E cmake_depends "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
make[3]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[3]: Entering directory `/usr/src/cmake-2.4.7/CMakeTmp'
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c
/usr/src/cmake-2.4.7/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec
/usr/bin/cmake -E remove -f cmTryCompileExec
/usr/bin/gcc -fPIC
"CMakeFiles/cmTryCompileExec.dir/testCCompiler.o" -o cmTryCompileExec
-rdynamic
/usr/bin/ld: crt1.o No hay tal fichero: No existe el fichero ó directorio
collect2: ld devolvió el estado de salida 1
make[3]: *** [cmTryCompileExec] Error 1
make[3]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'
make[2]: *** [CMakeFiles/cmTryCompileExec.dir/all] Error 2
make[2]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/rule] Error 2
make[1]: Leaving directory `/usr/src/cmake-2.4.7/CMakeTmp'
make: *** [cmTryCompileExec] Error 2
CMake will not be able to correctly generate this project.
CMake Error: your CXX compiler: CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND was
not found in your path. For CMake to correctly use try compile
commands, the compiler must be in your path. Please add the compiler
to your PATH environment, and re-run CMake.
-- Configuring done
I have gcc and I have used it many times:
# gcc -v
Usando especificaciones internas.
Objetivo: i486-linux-gnu
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
Modelo de hilos: posix
gcc versión 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
The environments variables seems well:
# env | grep cc
CC=/usr/bin/gcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070808/58c6835a/attachment.htm
More information about the CMake
mailing list