thrift 安装

来源:互联网 发布:网络兼职招聘信息 编辑:程序博客网 时间:2024/05/16 05:59

1. 下载到 thrift-0.9.0.tar.gz,解压

2.  sudo ./configure --prefix=/usr/local/thrift-0.9.0 --with-boost=/usr/local/boost --with-cpp --with-libevent=/usr/local/libevent

由于依赖boost和 libevent,指明路径。with-cpp表示安装cpp库

3. sudo make && sudo make install

在/usr/local/thrift-0.9.0 就看到了


------------

4. 在/usr/local/bin中 ln 命令 thrift

5. 在/etc/ld.so.conf.d/third-part.conf中 添加库的路径, 执行/sbin/ldconfig

问题:

1 安装时看到 src/protocol/fastbinary.c:20:20: error: Python.h: No such file or directory

这个文件在安装了python开发包之后才有,所以sudo apt-get install python-dev

原创粉丝点击