编译protobuf时遇到
+ mkdir -p third_party/googletest/m4
+ autoreconf -f -i -Wall,no-obsolete
configure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOL
If 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下的问题

本文记录了在编译protobuf过程中遇到的AC_PROG_LIBTOOL宏未定义错误,并分享了解决方案,通过设置ACLOCAL_PATH环境变量指向libtool的aclocal目录,成功解决了不在root下编译的问题。
572

被折叠的 条评论
为什么被折叠?



