Make: pkg-config: No such file or directory error on Ubuntu

I am trying to compile an app and getting an error:

make: pkg-config: No such file or directory 

How do I install pkg-config on Ubuntu Linux 20.04 LTS system?

You need to run to install pkg-config:

sudo apt install pkgconf

Probably may want to install the build-essential package too:

sudo apt install build-essential

Now start build process again:

make
2 Likes

that helped and i can compile my app easily. I did ran sudo apt install build-essential but it never installed pkgconf. Any idea why they skipped it?

Many packages are not part of the meta build-essential package. Hence, you need to install needed developer tools, and libraries on your Ubuntu or Debian based systems.