安裝mongo編譯服務(wù)器出現(xiàn)問題
在scon all時候,最后彈出的報錯,然后ls中沒有mongo。請問怎么解決?報錯在下面?
scons: Building targets ...
g++ -o build/darwin/normal/mongo/shell/dbshell.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -mmacosx-version-min=10.6 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/darwin/normal/third_party/snappy -Isrc/third_party/snappy -Ibuild/darwin/normal/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/darwin/normal/third_party/s2 -Isrc/third_party/s2 -Ibuild/darwin/normal/third_party/boost -Isrc/third_party/boost -Ibuild/darwin/normal/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/darwin/normal -Isrc -Ibuild/darwin/normal/mongo -Isrc/mongo src/mongo/shell/dbshell.cpp
In file included from src/mongo/shell/dbshell.cpp:29:
In file included from src/mongo/client/dbclientinterface.h:1380:
src/mongo/client/dbclientcursor.h:120:40: error: 'this' pointer cannot be null
? ? ? in well-defined C++ code; pointer may be assumed to always convert to true
? ? ? [-Werror,-Wundefined-bool-conversion]
? ? ? ? bool isDead() const { return? !this || cursorId == 0; }
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ~^~~~
1 error generated.
scons: *** [build/darwin/normal/mongo/shell/dbshell.o] Error 1
scons: building terminated because of errors.
2018-06-09
是不是gcc版本問題?可以更新下試試