我正在尝试使用GCC和G ++ 5.3.0 和 SCons在 Fedora 27 上从源构建 MongoDB 3.5.13 3.0.1 ,并使用以下命令:
scons MONGO_VERSION=3.5.13 -j16 CC=gcc53 CXX=g++53 mongod
由于以下问题,我到目前为止仍无法构建二进制文件:
scons: ***
[build/opt/mongo/db/s/namespace_metadata_change_notifications.o] Error 1
In file included from src/mongo/db/storage/recovery_unit.h:37:0,
from src/mongo/db/operation_context.h:39,
from src/mongo/client/read_preference.h:33,
from src/mongo/s/client/shard.h:35,
from src/mongo/s/catalog/sharding_catalog_client.h:41,
from src/mongo/db/server_options.h:33,
from src/mongo/base/secure_allocator.h:40,
from src/mongo/db/auth/authorization_manager.h:35,
from src/mongo/db/s/get_shard_version_command.cpp:35:
src/mongo/db/storage/snapshot.h: In member function 'std::__cxx11::string mongo::SnapshotId::toString() const':
src/mongo/db/storage/snapshot.h:61:16: error: 'to_string' is not a member of 'std'
return std::to_string(_id);