源码编译安装Mariadb数据库的时候报错,/usr/bin/c++ doesn't support -std=c++11 or -std=c++0x, you need one that does.

在安装Mariadb数据库编译的时候,报错信息如下

  

CMake Error at storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake:186 (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:57 (include)


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

  错误原因:编译mariadb时,由于tokuDB引擎需要支持c++11的编译器,目前的版本不支持C++11

  解决办法:1)编译更高版本的GCC编译器,

       2)在cmark编译的时候,编译参数带上-DWITHOUT_TOKUDB=1即可

 

posted @ 2020-09-12 00:41  Molson  阅读(254)  评论(0编辑  收藏  举报