19,612
社区成员
发帖
与我相关
我的任务
分享
[root@localhost ~]# gcc --version
gcc (GCC) 4.8.2
Copyright 2013 Free Software Foundation, Inc.
-- Running cmake version 2.8.12.2
-- Found Git: /usr/bin/git (found version "1.7.1")
-- Configuring with MAX_INDEXES = 64U
-- This is Linux version 2.6.32-642.13.1.el6.i686
-- gcc is /usr/local/bin/gcc
-- We probably need /opt/rh/devtoolset-3/root/usr/bin/gcc
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at cmake/os/Linux.cmake:27 (MESSAGE):
GCC 4.8 or newer is required!
Call Stack (most recent call first):
CMakeLists.txt:221 (INCLUDE)
[root@localhost /]# which gcc
/usr/local/bin/gcc
可以看到和cmake用的是同一个gcc
[root@localhost /]# which gcc
/usr/local/bin/gcc
可以看到和cmake用的是同一个gcc