Linux Install Error: pkg-config not found [How to Solve]

Linux Installation Error: PKG config not found

When using compile to install, the following error occurs when executing./configure:

checking for pkg-config... no
pkg-config not found
configure: error: Please reinstall the pkg-config distribution

Prompt: configuration error, please reinstall PKG configuration distribution

Solution: according to the prompt, install PKG config:

sudo apt-get install pkg-config

Expand knowledge:

About PKG config:

pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.c `pkg-config –libs –cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance.

Similar Posts: