search

Home  >  Q&A  >  body text

vim installation clang_complete failed, please help

I have read a lot of tutorials on installing clang_complete on Baidu. I installed it using bundle. After installation, I opened the .c file and the following prompt appeared
Loading libclang failed, completion won't be available. Consider setting g:clang
_library_path.

clang has been installed and the system is ubuntu14.10.

The master who is passing by can help me solve it. I have been struggling for a long time and haven’t done it yet.

PHPzPHPz2774 days ago752

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:41:13

    Install libclang

    bashapt-get install libclang-3.5-dev 
    

    At this time libclang.so should be located
    /usr/lib/llvm-3.5/lib/libclang.so

    Then add clang_complete configuration to vim

    vimlet g:clang_use_library = 1
    let g:clang_library_path = '/usr/lib/llvm-3.5/lib/'
    

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:41:13

    Just add the method downstairs and you’ll be good to go.
    The following method provided by an enthusiastic netizen of v2ex will also work, and it is more convenient.
    sudo ln -s /usr/lib/llvm-3.5/lib/libclang.so.1 /usr/lib/libclang.so

    reply
    0
  • Cancelreply