【问题标题】:install gRPC and got make error安装 gRPC 并出现错误
【发布时间】:2017-05-07 17:14:16
【问题描述】:

我想在我的 centos 中安装 gRPC,我做了以下操作:

git clone https://github.com/grpc/grpc.git
cd grpc
make

现在出错了:

[root@VM_8_69_centos grpc]# make
[MAKE]    Generating cache.mk
[C]       Compiling third_party/boringssl/crypto/asn1/tasn_dec.c
In file included from third_party/boringssl/crypto/asn1/tasn_dec.c:66:
third_party/boringssl/crypto/asn1/../internal.h:121:22: error: stdalign.h: No such file or directory
make: *** [/root/src/grpc/objs/opt/third_party/boringssl/crypto/asn1/tasn_dec.o] Error 1

【问题讨论】:

    标签: git rpc grpc


    【解决方案1】:

    该项目使用了许多 git 子模块——如果你进入 third_party directory on github,所有子模块都有一个灰色的双文件夹图标,如果你点击它会带你进入另一个项目,而不是进入子目录。

    要修复您在make 中看到的错误,您可能只需要运行git submodule update --init --recursive 来检查所有子模块。

    【讨论】:

      猜你喜欢
      • 2018-10-17
      • 2021-07-31
      • 2020-04-23
      • 2017-08-28
      • 1970-01-01
      • 2021-10-11
      • 1970-01-01
      • 2016-11-08
      • 1970-01-01
      相关资源
      最近更新 更多