mac安装thrift-0.9.1
来源:互联网 发布:大连知润 编辑:程序博客网 时间:2024/06/05 04:02
安装Xcode
App store里安装。不安装这个会出现无法编译boost的问题。
安装boost
http://www.boost.org/
下载安装包,解压缩。
./bootstrap.sh --prefix=/usr/local/./b2 threading=multi address-model=64 variant=release stage install
安装libevent
http://libevent.org/
brew install openssl到/usr/local/Cellar/openssl目录下查看,应该有1.0.2l,接下来建立软连接ln -s /usr/local/Cellar/openssl/1.0.2l/include/openssl/ libevent_home/include/openssl./config --prefix=/usr/local/makemake install
安装thrift
官网给的有问题,用开源社区的
https://github.com/apache/thrift/tree/0.9.1
brew install autoconfbrew install libtoolbrew install automake./bootstrap.shexport CXXFLAGS="-std=c++11"./configure --prefix=/usr/local --with-boost=/usr/local --with-libevent=/usr/local LDFLAGS='-L/usr/local/opt/openssl/lib' CPPFLAGS='-I/usr/local/opt/openssl/include'make CXXFLAGS=-stdlib=libstdc++sudo make install 这一步最后会有个error,但是不影响使用make[4]: *** [install-exec-hook] Error 1make[3]: *** [install-exec-am] Error 2make[2]: *** [install-am] Error 2make[1]: *** [install-recursive] Error 1make: *** [install-recursive] Error 1thrift -version 验证
阅读全文
2 0
- mac安装thrift-0.9.1
- Mac上安装Thrift
- MAC下thrift安装
- Mac下安装Thrift
- mac os 安装thrift
- mac os 安装 thrift
- mac下安装thrift
- mac os 安装thrift
- 【Thrift】Mac 安装
- Mac 10.9.2 安装thrift
- MAC/linux 下Thrift安装
- Mac安装thrift-0.10.0
- IOS/MAC环境下thrift的安装
- Mac下安装降级版thrift
- ubuntu 12.04中安装thrift-0.9.1
- thrift brew安装0.9.0
- Mac安装thrift因bison报错的解决办法
- Thrift使用入门(1) - Thrift概述及其安装
- nginx 配置
- CodeForces
- C语言基础
- Echarts实现折线图随时刻动态加载
- leetcode--Permutations
- mac安装thrift-0.9.1
- linux之sed用法
- .Net学习框架
- Python 字符串转python json.decoder.JSONDecodeError
- git roll back the previous version
- HBase 0.98增删改查java代码实现
- lintcode刷题——整数转罗马数字
- javaweb:判断当前请求是否为移动设备访问
- 新学期新开始