missing dependency (pkg-config)
Dawody opened this issue · comments
Mohamed Dawod commented
when I tried to build a rust project which depend on rusty_audio using cargo build
, I got the following error :
error: failed to run custom build command for alsa-sys v0.1.2
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: "Failed to run \"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"
: No such file or directory (os error 2)"', /home/dawod/.cargo/registry/src/github.com-1ecc6299db9ec823/alsa-sys-0.1.2/build.rs:4:38
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
but I fixed it by installing pkg-config in addition to libasound2-dev.
My OS is Ubuntu 18.04.2 LTS.
Mohamed Dawod commented
#7 This pull request solves the issue