Skip to content

Build Failure #30

Description

@mc-lito

Currently having issues with the build of the repo.

Code:

$ cargo build --locked --release
   Compiling librocksdb-sys v5.18.5
error: failed to run custom build command for `librocksdb-sys v5.18.5`

Caused by:
  process didn't exit successfully: `/home/dev/github/urbit-bitcoin-rpc/electrs/target/release/build/librocksdb-sys-0cf3b1ac2605ed4d/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs

--- stderr
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', src/libcore/result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

To fix this issue, I have tried to set the LIBCLANG_PATH environment variable to the path of the libclang shared library on my system. Also I have set the LIBCLANG_PATH environment variable by adding the following line to my ~/.bashrc file:

export LIBCLANG_PATH=path/to/libclang

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions