首页 > doesn't support -std=c++11 or -std=c++0x

doesn't support -std=c++11 or -std=c++0x

编译安装的过程中遇到这个问题,请问各位大大怎么解决的?GCC更新到了5.30,CMAKE版本也是最新。

CMake Error at storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake:180 (message):
/usr/bin/c++ doesn't support -std=c++11 or -std=c++0x, you need one that
does.
Call Stack (most recent call first):
storage/tokudb/PerconaFT/CMakeLists.txt:35 (include)

-- Configuring incomplete, errors occurred!
See also "/usr/src/db/mariadb-10.1.10/CMakeFiles/CMakeOutput.log".
See also "/usr/src/db/mariadb-10.1.10/CMakeFiles/CMakeError.log".


有可能你/usr/bin/c++ 不是你更新到5.30的gcc,你可以用 /usr/bin/c++ -v 检查一下版本。


运行cmake时可以添加参数-DWITHOUT_TOKUDB=1,禁止安装tokudb引擎。

【热门文章】
【热门文章】