bazel编译envoy时遇到错误:configure.ac:172: error: possibly undefined macro: AC_PROG_LIBTOOL

1 篇文章 0 订阅

遇到的问题

Repository rule http_archive defined at:
  /root/.cache/bazel/_bazel_root/5861efbf6640604f322aefb7a661544e/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
ERROR: An error occurred during the fetch of repository 'com_github_gperftools_gperftools':
   Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/5861efbf6640604f322aefb7a661544e/external/bazel_tools/tools/build_defs/repo/http.bzl", line 121
                patch(ctx)
        File "/root/.cache/bazel/_bazel_root/5861efbf6640604f322aefb7a661544e/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 161, in patch
                fail(<1 more arguments>)
Error applying patch command ./autogen.sh:
configure.ac:172: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

重要的信息是:autoconf编译 http_archive时遇到了没有定义的:AC_PROG_LIBTOOL
思路来源envoy的issue

因为没有安装libtool,查询是否安装了libtool的命令:

dpkg -l | grep libtool

所以需要安装工具包

apt install libtool

Tips:使用Bazel编译Envoy时需要提前安装一些工具

sudo apt-get install \
   libtool \
   cmake \
   automake \
   autoconf \
   make \
   ninja-build \
   curl \
   unzip \
   virtualenv \
   patch
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值