我对mongodb源文件进行了git检查,并尝试编译它。 我已经安装了gcc作为xcode-7.3.1命令行工具的一部分
现在,当我尝试使用:
构建mongodb二进制文件时.card-group > .card-header{
display: table-caption;
}
我收到以下错误:
scons all
在配置日志中显示:
scons: Reading SConscript files ...
scons version: 2.5.0
python version: 2 7 10 'final' 0
Checking whether the C compiler works... yes
Checking whether the C++ compiler works... yes
Checking that the C++ compiler can link a C++ program... yes
Checking if C++ compiler "g++" is GCC... no
Checking if C++ compiler "g++" is clang... yes
Checking if C compiler "gcc" is clang... no
C compiler does not match identified C++ compiler
See /Users/debashish.g/mongo-code/mongo/build/scons/config.log for details
我的scons: Configure: Checking if C compiler "gcc" is clang...
build/scons/sconf_temp/conftest_5.c <-
|
|#if defined(__clang__)
|/* we are using toolchain defined(__clang__) */
|#else
|#error
|#endif
|
gcc -o build/scons/sconf_temp/conftest_5.o -c build/scons/sconf_temp/conftest_5.c
build/scons/sconf_temp/conftest_5.c:5:2: error: #error
#error
^~~~~
scons: Configure: no
显示:
gcc --version
哪个是铿锵的。我哪里做错了?请帮忙。我现在已经坚持了很长时间。