mac 安装pkg-config

由于大部分的开源工程都需要用到pkg-config,因此今天在这讲解一下pkg-config for mac 安装过程.

1.检测环境是否已安装pkg-config

再命令行中输入: pkg-config 若未安装,则提示命令未找到.

2.安装pkg-config

curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz -o pkg-config-0.29.2.tar.gz
tar -xf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure  --with-internal-glib

    make

   sudo  make install

到此安装完成

posted @ 2021-06-10 11:17  无尽之宇  阅读(3624)  评论(0编辑  收藏  举报