检查C ++ 11支持" regex":不支持

时间:2016-07-05 04:58:09

标签: c++11 arangodb

当我尝试编译ArangoDB 3.0时,我遇到了如下问题。

wget https://www.arangodb.com/repositories/Source/ArangoDB-3.0.0.tar.gz
tar -xvvf ArangoDB-3.0.0.tar.gz
ln -s ArangoDB-3.0.0 arangodb

     OR

git clone https://github.com/arangodb/arangodb
cd arangodb 
git checkout 3.0
git pull

我已经尝试过以上二进制编译,如下所示。

cd arangodb/
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release

执行cmake .. -DCMAKE_BUILD_TYPE=Release命令会给我以下错误。

-- Checking C++11 support for "regex"
CMake Error at cmake/CheckCXX11Features.cmake:129 (message):
  Checking C++11 support for "regex": not supported
Call Stack (most recent call first):
  cmake/CheckCXX11Features.cmake:150 (cxx11_check_feature)
  CMakeLists.txt:265 (include)


-- Configuring incomplete, errors occurred!
See also "/home/ec2-user/arangodb/build/CMakeFiles/CMakeOutput.log".

AWS Linux AMI上的操作系统版本:

Linux 4.4.11-23.53.amzn1.x86_64#1 SMP Wed Jun 1 22:22:50 UTC 2016 x86_64 x86_64 x86_64 GNU / Linux

GCC版本:

gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1 个答案:

答案 0 :(得分:7)

  在gcc 4.9中添加了

Regex支持    - @ Bill-Lynch

您有两种选择:

  • 安装较新的编译器。
  • 浏览代码并用等效函数替换所有正则表达式。