Compiling Rust program in Ubuntu environment reports an error:
failed to run custom build command for openssl sys v0.9.39
Ubuntu version: 20.04
Refer to GitHub’s discussion and there are two possible solutions:
sudo apt install pkg-config
sudo apt install libssl-dev
I use the second method to solve this problem.