Skip to content

Rust Compile Issues #9

@drneavin

Description

@drneavin

Hello,

I am receiving the following error when I try to compile using rust:

  thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any of [\'libclang.so\', \'libclang.so.*\', \'libclang-*.so\'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (skipped: [])"', /home/drenea/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.36.1/src/lib.rs:1521:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

However, I have set $LIBCLANG_PATH to /path/to/software/anaconda3/envs/libclang/lib which contains the following directories and files:

gcc                                  libclang.so.11                    libLLVM-11.so                        librustc_macros-1e9f2ea5bcbf04e7.so        libubsan.so
ldscripts                            libgcc_s.so                       liblsan.so                           libstdc++.so                               libubsan.so.1
libasan.so                           libgcc_s.so.1                     liblsan.so.0                         libstdc++.so.6                             libubsan.so.1.0.0
libasan.so.5                         libgomp.so                        liblsan.so.0.0.0                     libstdc++.so.6.0.28                        libz.a
libasan.so.5.0.0                     libgomp.so.1                      libLTO.so.11                         libstd-f14aca24435a5414.so                 libz.so
libatomic.so                         libgomp.so.1.0.0                  libquadmath.so                       libtest-1a99bd050f5bcac9.so                libz.so.1
libatomic.so.1                       libitm.so                         libquadmath.so.0                     libtracing_attributes-72c431a73c36fa6b.so  libz.so.1.2.11
libatomic.so.1.2.0                   libitm.so.1                       libquadmath.so.0.0.0                 libtsan.so                                 pkgconfig
libchalk_derive-8c5c69f492ead449.so  libitm.so.1.0.0                   libRemarks.so.11                     libtsan.so.0                               rustlib
libclang.so                          libLLVM-11-rust-1.47.0-stable.so  librustc_driver-ff4ec557f69b94a7.so  libtsan.so.0.0.0

and clearly has libclang.so.

Not sure how to fix this or if this is a problem with the HPC that I am using.

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions