Skip to content

libclang not available when llvm-clang was not installed in a standard way #10

Description

@jianshu93

Hello @mustafa-guler,

I have no problem compile it on a self-owned Debian 12 system (clang was installed via sudo apt-get install clang). However on a several where clang is often installed via some module load, library path are from a different path than the case before. Any idea when I can make changes in build.rs to allow it to find clang libraries?

error below:

--- stderr
thread 'main' panicked at /home/jianshu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.65.1/lib.rs:603:31:
Unable to find libclang: "the libclang shared library at /usr/lib64/clang-private/libclang.so.7 could not be opened: libclangAST.so.7: cannot open shared object file: No such file or directory"
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Thanks,

Jianshu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions