vim installation clang_complete failed, please help
PHPz
PHPz 2017-05-16 16:39:13
0
2
716

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.

PHPz
PHPz

学习是最好的投资!

reply all(2)
洪涛

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/'
伊谢尔伦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!