pkg-config for mac 安装

来源:互联网 发布:linux 用终端打开文件 编辑:程序博客网 时间:2024/05/29 18:05

[编译环境] 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.gzcd pkg-config-0.28

./configure  --with-internal-glib
   make

  sudo  make install


到此安装完成


0 0
原创粉丝点击