Reference: Https://github.com/yangyangwithgnu/use_vim_as_ide
Https://github.com/Valloric/YouCompleteMe
There are several issues with the installation of the full install step in Https://github.com/Valloric/YouCompleteMe:
(1) in executing
Cmake-g "Unix makefiles"-duse_system_boost=on-dpath_to_llvm_root=/path/to/prebuilt_binarary. ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp
Error in the process: the C + + compiler does not fully support the C++11 feature. (Current version gcc-4.8.5)
Workaround: Manually upgrade to GCC-5.2.0, the specific steps can be collected online tutorial, after installation to replace the old version:/USR/BIN/GCC,/usr/bin/g++,/usr/bin/c++. (Installation Step reference: https://itbilu.com/ linux/management/v1vdnt9ll.html)
In addition: Export cxx=/path/to/gcc5.2.0.
(2) Continue to error as follows
"Failed to determine the source files for the regular expression backend" (no regular expression found
This question has been searched for a long time, there is no very clear answer. But has been suspected of the C + + standard library problem, because the installation of clang before the installation of a libstdc++ library, so a little doubt that the library conflict caused, but clang should be compatible with GCC.
Finally try to set the LD_LIBRARY_PATH environment variable to your own compiled gcc5.2.0 libstdc++.so directory (lib in the compiled directory), problem solving.
(3) Implementation
CMake--build. --target Ycm_core
BUG: Link error, add symbol error, unrecognized format error.
Cause: In the first step, using-dpath_to_llvm_root, the directory is a prebuilt_binaray downloaded from http://llvm.org/releases/download.html, the version is AARCH64 version, Later found that CentOS7 there is no corresponding compiled binary libclang.so.
(CentOS6 seems to be available in Fedora version)
Workaround: Use your own compile clang when compiling the libclang.so, remove-dpath_to_llvm_root in the first step, add-dexternal_libclang_path=/path/to/libclang.so.
Compile successfully, generate ycm_core.so.
VIM YCM Plugin installation problem record