VIM在安装完YCM之后出现错误的解决

在安装完YCM之后,重新打开vim遇到如下的报错信息:

ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need to compile YCM before using it. Read the docs!

这个需要到~/.vim/bundle/YouCompleteMe,YCM目录下,执行如下命令:

./install.sh --clang-completer

但是执行过程中错误如下:

Some folders in /home/sky-tm/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party are empty; you probably forgot to run: git submodule update –init –recursive

按照提示进行:

git submodule update --init --recursive

执行完成后,再次执行命令:

./install.sh --clang-completer

又报错错误信息:

Your C++ compiler supports C++11, compiling in that mode.
Downloading Clang 3.5
CMake Error at ycm/CMakeLists.txt:62 (message):
No pre-built Clang 3.6 binaries for 32 bit linux. You’ll have to compile
Clang 3.6 from source. See the YCM docs for details on how to use a
user-compiled libclang.

执行如下命令

./install.sh --clang-completer --system-libclang

然后在执行:

./install.sh --clang-completer

结果为:

vim问题ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected解决

你可能感兴趣的:(Linux,Python)