欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

erlang/thrift快速安装

发布时间:2025/4/16 编程问答 37 豆豆
生活随笔 收集整理的这篇文章主要介绍了 erlang/thrift快速安装 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

1.安装erlang

首先需要安装

rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/5/i386/epel-release-5-4.noarch.rpm

其次

yum install git

再次

下载erlang 源码包

./configure

make

make install

备注其中前两部是为了以后安装thrift支持做准备的

2.安装thrift

首先

sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel  openssl-devel

其次下载thrift源码包

./configure   //注意观察支持的语言,我让它支持python \c++\erlang,视情况而定 

make

make install

3.欢迎你在可以进入多语言,并发,分布式环境!

正对thrift编译时的缺陷 可以在makfile时 加入

一种解决的办法:-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H

或者修改头文价

This will cause the preprocessor to include netinet/in.h in thrift/protocol/TPrototol.h, so the hton* declarations will be visible to the compiler.

TProtocol.h has the following lines which cause the compiler error when HAVE_NETINET_IN_H is not defined.
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

 

转载于:https://blog.51cto.com/wiigood/833430

总结

以上是生活随笔为你收集整理的erlang/thrift快速安装的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。