cmake терпит неудачу с «Ошибка CMake: ваш компилятор CXX:« CMAKE_CXX_COMPILER-NOTFOUND »не найден».

[email protected]:~/Downloads/akonadi-googledata-1.2.0/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

С autotools я получаю следующее:

[email protected]:~/Downloads/akonadi-googledata-1.2.0/build/build$ autoreconf -i -f
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
autoreconf: `' or `' is required
41 голос | спросил xjonquilx 18 J0000006Europe/Moscow 2012, 21:14:19

2 ответа


Установите build-essential  Install build-essential , если вы этого еще не сделали. Вы можете установить его в Центр программного обеспечения или с помощью:

sudo apt-get update && sudo apt-get install build-essential
ответил peterretief 3 FebruaryEurope/MoscowbSun, 03 Feb 2013 11:44:41 +0400000000amSun, 03 Feb 2013 11:44:41 +040013 2013, 11:44:41

gcc не содержит g ++, это разные пакеты. Установите g ++ Установить г ++ :

apt-get install g++
ответил Thomas 18 J0000006Europe/Moscow 2012, 22:13:20

Похожие вопросы

Популярные теги

security × 330linux × 316macos × 2827 × 268performance × 244command-line × 241sql-server × 235joomla-3.x × 222java × 189c++ × 186windows × 180cisco × 168bash × 158c# × 142gmail × 139arduino-uno × 139javascript × 134ssh × 133seo × 132mysql × 132