Where is libclang.so?

28,721

Solution 1

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

Solution 2

You need to install libclang. On my Ubuntu system it is in the "libclang1" package. Clang compiler and libclang are in different packages.

Share:
28,721
user3476184
Author by

user3476184

Updated on August 05, 2022

Comments

  • user3476184
    user3476184 almost 2 years

    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?