rust-rdkafka icon indicating copy to clipboard operation
rust-rdkafka copied to clipboard

Build issue. is `cmake` not installed?

Open ravieze opened this issue 1 year ago • 0 comments

I am trying to use rust-rdkafka into my project. I added the following dependency to my cargo.toml

[package]
name = "rust_fair_scheduler"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cmake = "0.1.49"
rdkafka = { version = "0.29.0", features = ["cmake-build"] }

Now, on the compilation, I get this error. The pain point is, i need to ensure cmake to be available on all machines using this project. I am not sure if cmake is required in runtime also.

Question: is there a way for me to use this library with out installing cmake on my system? I tried to add cmake to the crates but no luck

  --- stderr
  Building and linking librdkafka statically
  thread 'main' panicked at '
  failed to execute command: No such file or directory (os error 2)
  is `cmake` not installed?

ravieze avatar Mar 22 '23 10:03 ravieze