The official tutorial step 4: configure drivers, (note I am a novice, and all) according to the official tutorial
Execute the command:
Cmake.. \
- DCMAKE_BUILD_TYPE=Release \
- DCMAKE_INSTALL_PREFIX=/usr/local
After an error, the specific error (to view images more clear) as follows:
Fatal: not a git repository (or until the mount point/any parent directory)
Stop in the file system boundaries (not set GIT_DISCOVERY_ACROSS_FILESYSTEM),
Traceback (the most recent call last) :
The File "/etc/calc_release_version. Py", line 171, in & lt; module>
RELEASE_VER=the main ()
The File "/etc/calc_release_version. Py", line 108, in the main
Head_tag_ver=check_head_tag ()
The File "/etc/calc_release_version. Py", line 68, in check_head_tag
Tags=check_output ([' git ', 'tag', '-l']). The split ()
The File "/etc/calc_release_version. Py", 46, the line in check_output
Return subprocess. Check_output (args)
The File "/usr/lib/python3.6 subprocess. Py", line 356, in check_output
* * kwargs) stdout
The File "/usr/lib/python3.6 subprocess. Py", line 438, in the run
The output=stdout and stderr=stderr)
Subprocess. CalledProcessError: the Command '[' git', 'tag', '-l'] 'returned non - zero exit status 128.
CMake Error at CMakeLists. TXT: 162 (the message) :
BUILD_VERSION not specified and could not be calculated (script invocation
Failed); Specify in CMake command, - DBUILD_VERSION=& lt; Version>
-- Configuring incomplete, errors occurred!
See also "/home/zhangjc/mongo - CXX - driver - r3.5.0/build/CMakeFiles/CMakeOutput log".
Hope bosses help solve it, thanks.
CodePudding user response:
Ontology has been since the knot, if has the same problem, please refer to my blog, https://blog.csdn.net/X_BoLuoPi/article/details/105863082