2017-08-30 75 views
1

我需要移植ArangoDB至CentOS 5系统,我已经更新蟒蛇2.7.13和cmake的3.91,但cmake的执行,以下错误信息时出现配置arangodb在CentOS的失败5

-- Will compile in hand-optimized assembler code for CRC32. 
CMake Error at arangod/CMakeLists.txt:448 (target_compile_features): 
    target_compile_features The compiler feature "cxx_constexpr" is not known 
    to CXX compiler 

    "GNU" 

    version 4.1.2. 


-- building for git revision: 
-- Configuring incomplete, errors occurred! 

是否有人知道这个错误怎么样?

回答

0

ArangoDB需要一个支持C++ 11标准的编译器。您需要gcc 4.8及以上版本。上述错误通知您,您的编译器不能识别constexpr关键字。另请注意,Centos 5已于2017年3月到期(https://www.centos.org/forums/viewtopic.php?t=57398),并且不应该再运行。但是,如果真的没有办法绕过Centos 5,这里是一个在Centos 5中提供gcc 4.8的码头集装箱。