歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 編譯環境 pkg-config for mac 安裝

編譯環境 pkg-config for mac 安裝

日期:2017/2/28 13:49:11   编辑:Linux教程

由於大部分的開源工程都需要用到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

到此安裝完成。

Copyright © Linux教程網 All Rights Reserved