Redhat 系统上安装 Protobuf

本文档详细记录了在Redhat系统特别是Tesla K80上安装Protobuf 3.2.0的过程,包括需要安装autoreconf、automake和libtool这三个依赖,并解决了autogen.sh运行时遇到的google bug,通过手动修改metadata.h文件来完成安装。
摘要由CSDN通过智能技术生成

本文档记录了在远程服务器 Tesla K80 Redhat 系统上安装 Protobuf 的过程

我从这里 下了 protobuf-3.2.0.tar.gz。

# tar zxvf protobuf-3.2.0.tar.tgz
# cd protobuf-3.2.0/
# ./configure
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
......................
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/gtest-config
config.status: creating build-aux/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
# make
make all-recursive
......................
make[2]: ***[google/protobuf/any.pb.lo] Error 1
make[2]: Leaving directory '/root/K80/protobuf-3.2.0/src'
make[1]: ***[all-recursive] Error 1
make[1]: Leaving directory '/root/K80/protobuf-3.2.0'
make: *** [all] Error 2

上网查了一下,有人说用 autogen.sh 先跑一下࿱

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值