Bug#846563: clang.cindex.LibclangError: libclang-4.0.so: No such file or directory.

Philipp Marek philipp.marek at linbit.com
Fri Dec 2 09:09:10 UTC 2016


> >      $ LC_ALL=C apt-get install libclang1-4.0
> >      Reading package lists... Done
> >      Building dependency tree
> >      Reading state information... Done
> >      libclang1-4.0 is already the newest version (1:4.0~svn286225-1).
> >      0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
> > 
> liblclang-4.0so is provided by libclang-4.0-dev
uh, no? I've got the right package:

    $ dpkg-query -L libclang1-4.0                                                                                           
    /.
    /usr
    /usr/lib
    /usr/lib/llvm-4.0
    /usr/lib/llvm-4.0/lib
    /usr/lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu/libclang-4.0.so.1
    /usr/share
    /usr/share/doc
    /usr/share/doc/libclang1-4.0
    /usr/share/doc/libclang1-4.0/NEWS.Debian.gz
    /usr/share/doc/libclang1-4.0/changelog.Debian.gz
    /usr/share/doc/libclang1-4.0/copyright
    /usr/share/lintian
    /usr/share/lintian/overrides
    /usr/share/lintian/overrides/libclang1-4.0
    /usr/lib/llvm-4.0/lib/libclang-4.0.so.1
    /usr/lib/llvm-4.0/lib/libclang.so.1


After doing

    $ ln -s /usr/lib/llvm-4.0/lib/libclang-4.0.so.1 /usr/lib/libclang-4.0.so

the library does work; there's little to no documentation I can find, but 
at least it's parsing my C file.


> you should install this package.
> (I should probably mark it as a dependency of python-clang-X.Y)
yes, please; and please also fix the path to "libclang-4.so".

Thank you!



More information about the Pkg-llvm-team mailing list