Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is libclang.so?

I am using Linux Mint and I installed clang_complete using the makefile from Clang Complete, but it does not work. When I open a cpp file, there is an error message:

Loading libclang failed, completion won't be available. Consider setting g:clang_library_path

I already did some research on this topic and tried to find the libclang.so file to put g:clang_library_path= '...' into my vimrc, but I cannot find the file so I cannot define the path in my vimrc.

$ find / -name libclang -type f 2> /dev/null doesn't return anything.

How do I make clang_complete work?

like image 610
user3476184 Avatar asked Mar 29 '14 16:03

user3476184


1 Answers

You probably have libclang.so.1 in /usr/lib/x86_64-unknown-linux or somewhere similar. Make a symbolic link named as libclang.so in any of your library path would solve the problem (at least for me).

cd /usr/lib/x86_64-unknown-linux
ln -s libclang.so.1 libclang.so
like image 94
xuhdev Avatar answered Oct 03 '22 17:10

xuhdev