Installing open CV under Linux system

1. Install the apt – get

step1:
curl https://raw.githubusercontent.com/dvershinin/apt-get-centos/master/apt-get.sh -o /usr/local/bin/apt-get


step2:
chmod 0755 /usr/local/bin/apt-get

2. Install the PKG – config

download the version you want

https://pkg-config.freedesktop.org/releases/

2. installation

tar xf tar xf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure --with-internal-glib
make
make check
make install

(3) verify

which pkg-config

Read More: