当前位置: 代码迷 >> 综合 >> 解决configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL
  详细解决方案

解决configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL

热度:17   发布时间:2024-01-31 09:12:30.0

编译protobuf时遇到

+ mkdir -p third_party/googletest/m4
+ autoreconf -f -i -Wall,no-obsolete
configure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOLIf this token and others are legitimate, please use m4_pattern_allow.See the Autoconf documentation.
autoreconf: /home/fanyu.meng/product/autoconf/bin/autoconf failed with exit status: 1

在网上找了一番

都是

sudo apt install libtool

可是我的libtool是正常的

还是翻墙好,找到了答案

export ACLOCAL_PATH=$HOME/install/libtool/share/aclocal:$ACLOCAL_PATH

目测是因为不在root下的问题

  相关解决方案