You do not have to set any environment variables, only install the dev package:
sudo apt update sudo apt install -y pkg-config libssl-dev