编译环境 pkg-config for mac 安装

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

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

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

2.安装pkg-config

curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz -o pkg-config-0.28.tar.gz

tar -xf pkg-config-0.28.tar.gz

cd pkg-config-0.28./configure  --with-internal-glib  make

sudo  make install

到此安装完成。

猜你喜欢

转载自www.linuxidc.com/Linux/2016-09/135037.htm
今日推荐