您的位置:首页 > 其它

INSTALL PKG-CONFIG FOR MAC OSX

2014-05-22 13:03 429 查看
For those who don’t know about pkg-config, it is a tool that help we compile applications and libraries by inserting the correct compiler options.

Now, how can we install pkg-config for Mac OSX ?

Get MacPort

For no headache, install MacPort. It helps a lot when install open source software on the Mac.

Install here http://www.macports.org/install.php. You should choose “pkg” installer for quick use. Remember to select the right Mac version

Install pkg-config

Run Terminal. Cd to where you want to install pkg-config, and enter this

Oops, if you receive this error

It is because port is install in /opt/local/bin by
default. You should add /opt/local/bin to your PATH

Run Terminal, and enter this for temporary PATH append

Fore more information about pkg-config, visit

1. Guide to pkg-config

2. pkg-config

参考:http://www.fantageek.com/318/install-pkg-config-for-mac-osx/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: