1、下載pkg-config:wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.tar.gz
2、解壓:tar -zxvf pkg-config-0.29.tar.gz
3、cd 進入解壓文件夾
4、運行配置文件進行系統配置 : ./configure --with-internal-glib
5、編譯 pkgconfig : make
6、安裝包自檢測 : make check
7、安裝 :make install
至此, pkg-config 安裝完成。