http://incubator.apache.org/thrift/
安装环境: Mac OS 10.6 snow leopard
预先安装 libevent,
sudo port install libevent
1.
svn co http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
cd thrift
2.
./bootstrap.sh
3.
./configure.sh
出现以下错误,
./configure: line 16443: syntax error near unexpected token `MONO,'
./configure: line 16443: ` PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no)'
解决办法参见:http://wiki.apache.org/thrift/ThriftInstallationMacOSX
cp /opt/local/share/aclocal/pkg.m4 aclocal
重新运行 ./bootstrap.sh 和 ./configure.sh
4.
make
5.
sudo make install