I am building a Rust project and whenever I try to build I get
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"libudev\"` did not exi
t successfully: exit status: 1\nerror: could not find system library 'libudev' required by the 'libudev-sys' crate\n\n--- stderr\nPackage l
ibudev was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libudev.pc'\nto the PKG_CONFIG_PATH e
nvironment variable\nNo package 'libudev' found\n"', /home/nikola/.cargo/registry/src/github.com-1ecc6299db9ec823/libudev-sys-0.1.4/build.r
s:38:41
Its clear enough of an error message, but the issue is, all that I could find online, 10+ solutions mention installing pkg-config and libudev-dev. I have both installed and reinstalled but I dont have the libudev.pc file
Running apt search udev gives these entries
librust-libudev-sys-dev/focal 0.1.4-1 amd64
FFI bindings to libudev - Rust source code
libu2f-udev/focal,focal,now 1.1.10-1 all [installed]
Universal 2nd Factor (U2F) common files
libudev-dev/focal-updates,now 245.4-4ubuntu3.17 amd64 [installed]
libudev development files
libudev1/focal-updates,now 245.4-4ubuntu3.17 amd64 [installed,automatic]
libudev shared library
Missing the libudev.pc
➜ ~project git:(master) ✗ locate libudev.pc
➜ ~project git:(master) ✗
➜ ~pkgconfig: echo $PKG_CONFIG_PATH
➜ ~pkgconfig: