2017-08-30 77 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的碼頭集裝箱。