最近使用到thrif,简单总结一下安装过程,其实通过ports和pkg方式更方便。
参考 http://blog.csdn.net/zhangxue/archive/2008/11/11/3274732.aspx
操作系统环境:FreeBSD
依赖库:libevent 、boost、zlib
thrift:http://www.thrift-rpc.org/?p=thrift.git;a=snapshot;h=e58b37a521daba1f762dad24ea3034eb64efa8c8;sf=tgz
boost:http://cdnetworks-kr-1.dl.sourceforge.net/project/boost/boost/1.42.0/boost_1_42_0.tar.gz
libevent:http://monkey.org/%7Eprovos/libevent-1.4.10-stable.tar.gz
zib:自带
安装:
1.libevent,解压后
./configure
>make
>make install
2.boost
参考:http://www.boost.org/doc/libs/1_42_0/more/getting_started/unix-variants.html#easy-build-and-install
解压后:
./bootstrap.sh --prefix= installpath
./bjam install,出一段文字后,需要等待一段时间才有反应。
3.thrift
./bootstrap.sh
./configure,这个过程在我的FreeBSD下没有通过,直接注释掉出错行,初步估计是csh和bash的问题。
make
make install
4.测试
输入命令 thrift
成功了,可以使用了。