[CMake] Cannot find appropriate C++ compiler on this system ...

Eric Noulard eric.noulard at gmail.com
Thu Sep 29 04:35:39 EDT 2011


2011/9/29 Albretch Mueller <lbrtchx at gmail.com>:
>  I am using knoppix and I am trying to build cmake's sources into a
> local directory, but this is what I get:
> ~
> $ ./bootstrap; make; make install
> ---------------------------------------------
> CMake 2.8.5, Copyright 2000-2009 Kitware, Inc.
> C compiler on this system is: cc
> ---------------------------------------------
> Error when bootstrapping CMake:
> Cannot find appropriate C++ compiler on this system.
> Please specify one using environment variable CXX.
> See cmake_bootstrap.log for compilers attempted.

[..]
may this is true.

> ~
>
> $ which gcc
> /usr/bin/gcc
>
> $ gcc --version
> gcc (Debian 4.3.4-6) 4.3.4
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> $ ls -l /usr/bin/gcc
> lrwxrwxrwx 1 root root 7 Nov  5  2009 /usr/bin/gcc -> gcc-4.3

gcc is a C compiler not a C++ compiler.

Do you have 'g++" installed?

What does

g++ --version says?

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list