[CMake] CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".

Carlos Giménez scire1905 at gmail.com
Mon May 27 05:50:02 EDT 2013


Dear all, I'm trying to install one program in my system (Debian 7.0
Wheezy), but I have this problem with cmake.


*FC=gfotran CC=gcc CXX=g++ cmake -DENABLE_MPI=OFF -DENABLE_SGI_MPT=OFF
-DENABLE_BLAS=ON -DENABLE_LAPACK=ON -DENABLE_TESTS=OFF
-DENABLE_64BIT_INTEGERS=OFF -DCMAKE_BUILD_TYPE=Release
/home/Darth-Razor/Documentos/DIRAC-12.6-Source

CMake Error: CMake was unable to find a build program corresponding to
"Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to
select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_Fortran_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_Fortran_COMPILER
CMake Error: Could not find cmake module
file:/home/Darth-Razor/Documentos/DIRAC-12.6-Source/build/CMakeFiles/CMakeFortranCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module
file:/home/Darth-Razor/Documentos/DIRAC-12.6-Source/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module
file:/home/Darth-Razor/Documentos/DIRAC-12.6-Source/build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!*

I have this versions:

*cmake version = 2.8.9
gfortran version = GNU Fortran (Debian 4.7.2-5) 4.7.2
*
*gcc version = gcc (Debian 4.7.2-5) 4.7.2
*
*g++ version = g++ (Debian 4.7.2-5) 4.7.2*

I try to setup the .bashrc with

*export CMAKE_Fortran_COMPILER="/usr/bin/gfortran"
export CMAKE_C_COMPILER="/usr/bin/gcc"
export CMAKE_CXX_COMPILER="/usr/bin/g++"*

and with

*export
PATH=$PATH:"/usr/bin/cmake:/usr/bin/gfortran:/usr/bin/gcc:/usr/bin/g++"*

But I have the same error.

Thanks for the help in advance!

All the best!


-- 
Lic. Carlos A. Giménez
PhD student
Natural and Exact Science Faculty
Northeastern University of Argentina
Institute of Modeling and Innovation on Technology
CONICET UNNE http://imit.unne.edu.ar
Personal web page: https://sites.google.com/site/scire1905/

(Enough reason to think if is necessary to print this document.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130527/e656599d/attachment-0001.htm>


More information about the CMake mailing list