Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build rocksdb v0.17.0 failed! #137

Open
RustChater opened this issue Jan 31, 2022 · 1 comment
Open

build rocksdb v0.17.0 failed! #137

RustChater opened this issue Jan 31, 2022 · 1 comment
Assignees
Labels

Comments

@RustChater
Copy link

Cargo.toml

rocksdb="0.17.0"
...

Build with rust-musl-build:

alias rust-musl-builder='docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder'
rust-musl-builder cargo build --release

Got error:

error: failed to run custom build command for `librocksdb-sys v6.20.3`

Caused by:
  process didn't exit successfully: `/home/rust/src/target/release/build/librocksdb-sys-11e46c0a1b4079c0/build-script-build` (exit status: 101)
  --- stderr
  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/rust/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/bindgen-0.59.2/src/lib.rs:2144:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
@JoshuaNitschke
Copy link

@RustChater, install a few more packages:

sudo apt-get update && sudo apt-get install -y libclang-dev clang llvm llvm-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants