brew :
安装命令:
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
注意: 有这个1 ;
sudo brew install libtool
卸载命令:
sudo brew uninstall libtool
------
如果 安装的时候 没有加sudo:
就会报 link 错误;
之后再使用 sudo brew link libtool 就好了。
-----
编译json-c:
sudo brew install libtool automake
安装了这两个工具后,就可以使用./autogen.sh 了。