Where is libclang.so?

I am using linux mint and I installed clang_complete using the Clang Complete makefile. But that does not work. When I open the cpp file, an error message appears:

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 for put g: clang_library_path = '...' in my vimrc. But I can not find the file. Therefore, I cannot determine the path in my vimrc.

$ find / -name libclang -type f 2> /dev/null returns nothing.

I would be glad to get some help to make clang_complete work.

+6
source share
2 answers

You probably have libclang.so.1 in /usr/lib/x86_64-unknown-linux or something like that. Making a symlink named libclang.so in any of the paths of your library will solve the problem (at least for me).

 cd /usr/lib/x86_64-unknown-linux ln -s libclang.so.1 libclang.so 
+10
source

you need to install libclang, on my ubuntu system it is in the libclang1 package. The Clang compiler and libclang are in different packages.

+7
source

All Articles