Error: failed to run custom build command for `rdkafka-sys v4.5.0+1.9.2`

Caused by: process didn't exit successfully: target\debug\build\rdkafka-sys-5382ce5e35b02ace\build-script-build (exit code: 1)

--- stderr librdkafka will be linked dynamically librdkafka 1.9.2 cannot be found on the system: "pkg-config" "--libs" "--cflags" "rdkafka" "rdkafka >= 1.9.2" did not exit successfully: exit code: 1
error: could not find system library 'rdkafka' required by the 'rdkafka-sys' crate

--- stderr Package rdkafka was not found in the pkg-config search path. Perhaps you should add the directory containing rdkafka.pc' to the PKG_CONFIG_PATH environment variable No package 'rdkafka' found Package rdkafka was not found in the pkg-config search path. Perhaps you should add the directory containing rdkafka.pc' to the PKG_CONFIG_PATH environment variable No package 'rdkafka' found

Dynamic linking failed. Exiting.

I've tried various ways like set variable path, donwload librdkafka from github, set system variable but always failed or searching in stackoverflow but no answer or one case with me.

What do you get when you run pkg-config --libs --cflags rdkafka "rdkafka >= 1.9.2" at the command prompt? That must succeed.

pkg-config --libs --cflags rdkafka "rdkafka >= 1.9.2"
Package rdkafka was not found in the pkg-config search path.
Perhaps you should add the directory containing rdkafka.pc' to the PKG_CONFIG_PATH environment variable No package 'rdkafka' found Package rdkafka was not found in the pkg-config search path. Perhaps you should add the directory containing rdkafka.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rdkafka' found