CentOS 6 中 CMake 的问题

art*_*rxe 7 make centos

我尝试在 CentOS 6.2 中安装软件,但没有成功。在 README 文件中它说:

Requirements:
  - qt4 gui lib version >= qt4.6.x

    Note that many linux distributions split packages into a user
    and developer package and that you need to install both.

  - ALSA Version 1.0 or newer (audio/midi input/output)
  - CMake >= 2.4.6
  - libsndfile >= 1.0.19

  - recommended: JACK audio server (audio output)

  - recommended: portaudio 19
    (required for windows version)
Run Code Online (Sandbox Code Playgroud)

当我尝试使用 安装它时make release,我得到以下信息:


-- 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.
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮助我解决这个问题吗?

小智 11

你需要 C++ 和其他一些包。例如:

# yum install gcc-c++
# yum install cmake`
Installed:
cmake.i386 0:2.6.4-1.el5.rf                                                  
Complete!
# yum install -y ncurses-devel
Installed:
ncurses-devel.i386 0:5.5-24.20060715                                         
Complete!
Run Code Online (Sandbox Code Playgroud)


art*_*rxe 5

我是gcc-c++通过安装来做到的yum。