Scribe在CentOS 5.8和6.4上编译不过的解决办法
来源:互联网 发布:ios6.1.3软件不支持 编辑:程序博客网 时间:2024/05/19 12:17
安装环境:
CentOS 5.8
boost 1.5.3
thrift 0.9.0
编译时的错误提示:
/usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT<Transport_>::writeI16(int16_t)':/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: there are no arguments to 'htons' that depend on a template parameter, so a declaration of 'htons' must be available/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)/usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT<Transport_>::writeI32(int32_t)':/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:154: error: there are no arguments to 'htonl' that depend on a template parameter, so a declaration of 'htonl' must be available/usr/local/include/thrift/transport/TSocket.h: At global scope:/usr/local/include/thrift/transport/TSocket.h:219: error: expected ';' before '*' token/usr/local/include/thrift/transport/TSocket.h:240: error: expected ',' or '...' before '*' token/usr/local/include/thrift/transport/TSocket.h:293: error: 'sockaddr_in' does not name a type/usr/local/include/thrift/transport/TSocket.h:294: error: 'sockaddr_in6' does not name a type/usr/local/include/thrift/server/TNonblockingServer.h:780: error: expected ',' or '...' before '*' tokenstore.cpp: In member function 'void BufferStore::setNewRetryInterval(bool)':store.cpp:1681: warning: comparison between signed and unsigned integer expressionsstore.cpp:1693: warning: comparison between signed and unsigned integer expressionsstore.h: In constructor 'NetworkStore::NetworkStore(StoreQueue*, const std::string&, bool)':store.h:407: warning: 'NetworkStore::opened' will be initialized afterstore.h:401: warning: 'time_t NetworkStore::lastServiceCheck'store.cpp:1743: warning: when initialized heremake[3]: *** [store.o] Error 1make[3]: Leaving directory `/root/download/scribe/src'make[2]: *** [all] Error 2make[2]: Leaving directory `/root/download/scribe/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/download/scribe'make: *** [all] Error 2
解决办法:
export CPPFLAGS="-DHAVE_NETDB_H=1 -fpermissive"
./bootstrap.sh
./configure
如果在6.4上还通不过,就用如下命令:
./bootstrap.sh --with-boost-filesystem=boost_filesystem CPPFLAGS="-DHAVE_NETINET_IN_H"
- Scribe在CentOS 5.8和6.4上编译不过的解决办法
- 在linux(CentOS)上安装Thrift+Scribe
- libgdx g3d模型漫反射+镜面在vivo xplay等机子上glsl编译不过解决办法
- make出错,编译通不过的解决办法
- 在centos上编译和安装vlc
- 解决 eclipse开发的android工程在linux上编译不过的@Override问题
- 解决eclipse开发的android工程在linux上编译不过的@Override问题
- GDI+在VS2008 编译不过的解决方法
- GDI+在VS2005 编译不过的解决方法
- CentOS上编译myget时报SSL错误的解决办法
- 在CentOS上使用Neatbeans开发C++,调用Python的过程、遇到的问题和解决办法
- opengl示例代码在vs上编译不过
- CentOS 6.4 上找不到qmake的解决办法
- ubuntu 9.04下open函数编译不过的解决办法
- VS2008下最新X264(svn 2009.0216)编译不过的解决办法
- VS2008下最新X264(svn 2009.9)编译不过的解决办法
- scribe编译
- Tomcat 7 在 Centos 6 上启动慢的解决办法
- hive部署手册
- Lightswitch相关技术文章(分享图片)
- 右键弹出菜单,给编辑内容增加上下标
- Android中Activity共享变量Application context
- C编程第7篇---标准输入输出
- Scribe在CentOS 5.8和6.4上编译不过的解决办法
- AndroidManifest.xml文件解析
- 如何学习linux
- 数据库的连接-各个数据库的连接方式
- Linux软件安装方法---含有源代码的压缩包
- HDU2134:Cuts the cake
- 使用uploadify组件在struts2中实现上传
- Android gallery里显示文字
- android资料