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

时间:2020-09-12 10:53:04   收藏:0   阅读:83

在安装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即可

 

原文:https://www.cnblogs.com/molson/p/13655197.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!