VIM YCM Plugin installation problem record

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.