ubuntu安装python编译器_在Ubuntu上安装/编译grpc时出错

我有protobuf编译器版本3.0,需要安装grpc和grpc python插件。在教程之后,我将deb http://http.debian.net/debian jessie-backports main添加到我的来源.列表file和did sudo apt-get update和sudo apt-get install libgrpc-dev返回Package libgrpc-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package 'libgrpc-dev' has no installation candidate

因此,我决定从安装说明中提到的源代码编译它,并执行了以下操作:

^{pr2}$

但是,在make步骤中,我得到[MAKE] Generating cache.mk

make: Circular /home/vagrant/grpc2/grpc/libs/opt/libboringssl.a

[C] Compiling third_party/boringssl/crypto/bio/connect.c

third_party/boringssl/crypto/bio/connect.c: In function 'split_host_and_port':

third_party/boringssl/crypto/bio/connect.c:127:17: error: declaration of 'close' shadows a global declaration [-Werror=shadow]

cc1: all warnings being treated as errors

make: *** [/home/vagrant/grpc2/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o] Error 1

在切换到release-0_11分支时,运行make结果[HOSTCXX] Compiling src/compiler/csharp_generator.cc

src/compiler/csharp_generator.cc:47:43: error: 'google::protobuf::compiler::csharp::GetUmbrellaClassName' has not been declared

src/compiler/csharp_generator.cc: In function 'void grpc_csharp_generator::{anonymous}::GenerateServiceDescriptorProperty(grpc::protobuf::io::Printer*, const ServiceDescriptor*)':

src/compiler/csharp_generator.cc:237:62: error: 'GetUmbrellaClassName' was not declared in this scope

make: *** [/home/vagrant/grpc2/grpc/objs/opt/src/compiler/csharp_generator.o] Error 1

我不知道怎么安装这个。任何帮助都将不胜感激。在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值