我尝试在 CentOS 6.2 中安装一个软件,但没有成功。在自述文件中它说:
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)
当我尝试使用 安装它时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.
有人能帮我解决这个问题吗?
答案1
你需要 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!
答案2
gcc-c++
我是通过安装来做到的yum
。