Hi,

I checked the access to /home/syouse/ITKb/CMakeFiles/CMakeTmp, it has the 
permission of writing. This "/usr/bin/gcc" is the path to gcc and g++. My shell 
is c shell. I run these three commands before configuring ITK:

setenv PATH "${PATH}:/home/syouse/cmake/bin"
setenv CC /usr/bin/gcc
setenv CXX /usr/bin/g++

Thanks for your time.

Siamak




________________________________
From: Tyler Roscoe <ty...@cryptio.net>
To: Siamak Yousefi <syous...@yahoo.com>
Cc: cmake <cmake@cmake.org>
Sent: Friday, August 7, 2009 10:25:30 AM
Subject: Re: [CMake] Fw: cmake error

On Fri, Aug 07, 2009 at 08:09:34AM -0700, Siamak Yousefi wrote:
> CMake Error at
> /home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32
> (MESSAGE):
> The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
> It fails with the following output:
> Change Dir: /home/syouse/ITKb/CMakeFiles/CMakeTmp
>  
>  
> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> gmake[1]: Entering directory `/mnt/sdb1/syouse/ITKb/CMakeFiles/CMakeTmp'

Do you have write access to /home/syouse/ITKb/CMakeFiles/CMakeTmp?

Is /usr/bin/gcc the correct path to your C compiler?

tyler



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to