thrift-0.8.0 :https://www.cnblogs.com/he-px/p/7927766.html
安装boost
http://netix.dl.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.zip
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
安装libevent
brew install libevent
#./configure --prefix=/usr/local/thrift --with-boost=/usr/local --with-libevent=/usr/local --without-csharp --without-erlang --without-go --without-haskell --without-ruby --without-perl --without-php --without-php_extension
注意去掉不用的语言,openssl路径和libevent路径
先
brew install openssl
brew link openssl --force
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
./configure --prefix=/usr/local/thrift --with-boost=/usr/local --with-libevent=/usr/local/opt/libevent --with-openssl=/usr/local/opt/openssl --without-csharp --without-erlang --without-go --without-haskell --without-ruby --without-perl --without-php --without-php_extensionl --without-python
Building C++ Library ......... : yes
Building C (GLib) Library .... : no
Building Java Library ........ : no
Building C# Library .......... : no
Building Python Library ...... : yes
https://www.cnblogs.com/zhangqingping/p/4452990.html
报错1:
processor/ProcessorTest.cpp:26:10: fatal error: 'tr1/functional' file not found
https://my.liyunde.com/category/system/osx/
vim ./lib/cpp/src/concurrency/ThreadManager.h
多个源码文件报错 # include <tr1/functional>, file not found, 改为 # include <boost/tr1/functional.hpp> 解决.
Makefile
CXXFLAGS="-std=c++11"
报错2:
src/transport/TFileTransport.cpp:569:23: error: ordered comparison between pointer and zero ('pthread_t'
(aka '_opaque_pthread_t *') and 'int')
https://github.com/tat/mimetic/issues/5
./lib/cpp/src/transport/TFileTransport.cpp
150和567行
//if (writerThreadId_ <= 0) {
if (writerThreadId_ <= (_opaque_pthread_t *)0) {
报错3:
src/transport/TSSLSocket.cpp:34:10: fatal error: 'openssl/err.h' file not found
brew install openssl
装好的openssl在
/usr/local/opt/openssl/bin/openssl version -a
不是/usr/bin/openssl
brew install openssl
brew link --force openssl
configure 的时候加--with-openssl=/usr/local/opt/openssl
所以
vim /etc/profile
export PATH=/usr/local/opt/openssl/bin:$PATH
source /etc/profile
http://unix8.net/home.php/5008.html
make
protobuf-3.6.1
如果在mac上安装muduo
git clone https://github.com/chenshuo/muduo.git
git branch -r
git checkout mac
./build.sh
分享到:
相关推荐
thrift在windows下生成C#代码
mac 想安装低版本thrift 0.9.3太难了,高版本比较简单 直接执行 brew install thrift.rb 即可安装
使用thrift、websocket在javascript和c++之间建立rpc调用机制。 如果要使用js+html来写界面,cpp来写底层业务逻辑,这就非常有用了。 当然,如果底层不用cpp来写,也可以参考本代码的js对thrift的rpc包装。
Thrift,Windows,vs2010,c/c++
网上一直搜不到Windows下QT使用thrift的例子,自己整了个 QT版本 5.8.0 Boost版本 boost_1_61_0 Thrift版本 thrift-0.10.0
此文件为自己在Mac电脑上写的thrift的demo,使用maven 管理了小程序,并用thrift生成了源码,其中对thrift生成的源码,把override注销了,其他的没处理,如果感兴趣参考博客:...
thrift框架在linux下编译,实现双向通信demo,thrift使用的是0.9.3版本,编译后通过自己编写的demo实现客户端服务端的双向通信。已完成编译,源码也在里面,需要libevent和boost库以及openssl库,这些三方库自己下载...
使用wireshark抓取thrift协议接口调用
Apache Thrift is an open source cross language serialization and RPC framework. With support for over 15 programming languages, Apache Thrift can play an important role in a range of distributed ...
包含thrift五种模式下的例子;阻塞(2种), 非阻塞(3种);可做参考
windows环境下thrift.exe开发thrift
这里我新增的部分没有使用这一特性,所以理论上是支持从thrift0.8.0--thrift0.9.3之间的所有版本, 但是 依然建议最好用thrift0.9.3. 暂时支持thrift 二进制编码的形式: TBinaryProtocol ` kill port : lsof -i tcp:...
libthrift-0.8.0的java类库。
thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码...
thrift是一个软件框架,用来进行可扩展且跨语言的服务的开发。它结合了功能强大的软件堆栈和代码生成引擎,以构建在 C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, ...
thrift 安装包。
thrift,Apache Thrift 0.9.2 版本,解压后直接直接安装,可伸缩的跨语言服务开发框架,命令: 解压命令:tar -zxf thrift-0.9.2.tar.gz 安装命令:./configure --with-lua=no && make && make install 查看版本:...
thrift官方代码+与dubbo集成支持原生thrift协议
Make applications cross-communicate using Apache Thrift! About This Book Leverage Apache Thrift to enable applications written in different programming languages (Java, C++, Python, PHP, Ruby, and so...
thrift-0.13.0在Windows上exe程序;thrift-0.13.0在Windows上exe程序;thrift-0.13.0在Windows上exe程序