name: Error linking against libclang
description: cargo is unable to find libclang, despite specifying path
title: "Error linking against libclang"
labels: [cargo, libclang]
type: input
id: OS
attributes:
label: OS
description: Operating system and version (eg Ubuntu 20.04, OSX Catalina)
placeholder: Centos 7
type: architecutre
id: cpu_arch
attributes:
label: CPU Architecture
description: CPU Architecture (eg: x86, x86-64, arm, etc).
placeholder: x86-64
type: input
id: redis_version
attributes:
label: Redis Server Version
description: What version of redis-server are you running (redis-server --version)
placeholder: latest
type: input
id: redis_module_version
attributes:
label: Redis Module Version
description: What version of this redis module was installed?
placeholder: latest
type: textarea
id: whathappened
label: What happened?
description: Please tell us what happened, and what you expected to happen.
placeholder: Cargoo is unable to link against libclang. I have specified LIBCLANG_PATH with the following: /usr/lib64/clang-private:/usr/lib64/clang-private/libclang.so:/usr/lib64/llvm/libclang.so
type: textarea
id: logs
label: Relevant log output
description: If release, please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render:
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-.so', 'libclang.so.', 'libclang-.so.'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (invalid: [])"', /home/centos/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.59.2/src/lib.rs:2144:31
I have specified LIBCLANG_PATH with the following: /usr/lib64/clang-private:/usr/lib64/clang-private/libclang.so:/usr/lib64/llvm/libclang.so
Cargo doesn't see my libclang library despite passing in the actual paths and/or containing folders.
name: Error linking against libclang description: cargo is unable to find libclang, despite specifying path title: "Error linking against libclang" labels: [cargo, libclang]
type: input id: OS attributes: label: OS description: Operating system and version (eg Ubuntu 20.04, OSX Catalina) placeholder: Centos 7
type: architecutre id: cpu_arch attributes: label: CPU Architecture description: CPU Architecture (eg: x86, x86-64, arm, etc). placeholder: x86-64
type: input id: redis_version attributes: label: Redis Server Version description: What version of redis-server are you running (redis-server --version) placeholder: latest
type: input id: redis_module_version attributes: label: Redis Module Version description: What version of this redis module was installed? placeholder: latest
type: textarea id: whathappened label: What happened? description: Please tell us what happened, and what you expected to happen. placeholder: Cargoo is unable to link against libclang. I have specified LIBCLANG_PATH with the following: /usr/lib64/clang-private:/usr/lib64/clang-private/libclang.so:/usr/lib64/llvm/libclang.so
type: textarea id: logs label: Relevant log output description: If release, please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. render:
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-.so', 'libclang.so.', 'libclang-.so.'], set the
LIBCLANG_PATH
environment variable to a path where one of these files can be found (invalid: [])"', /home/centos/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.59.2/src/lib.rs:2144:31I have specified LIBCLANG_PATH with the following: /usr/lib64/clang-private:/usr/lib64/clang-private/libclang.so:/usr/lib64/llvm/libclang.so
Cargo doesn't see my libclang library despite passing in the actual paths and/or containing folders.
Ayy thoughts on how to diagnose this further?