gpt4 book ai didi

linux - 可能是未定义的宏 : AC_PROG_LIBTOOL

转载 作者:太空宇宙 更新时间:2023-11-04 11:57:44 25 4
gpt4 key购买 nike

我想构建protobuf,所以我只是克隆了包和目录中的cd。当我键入 ./autogen.sh 时,发生了一些错误。

screenshot of the error when I type ./autogen.sh

我收到回调:

configure.ac:104: 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/zhangxl/my/autoconf/bin/autoconf failed with exit status: 1

有人说我应该安装 libtool,但我已经安装了 autoconf、automaker、libtool 和 m4,但它们都是从源代码构建的,因为我无法访问 sudo 密码。

screenshot showing the cmd errors.

这是我的 .bashrc 文件:

export PATH=$PATH:/home/zhangxl/my/libtool/bin
export CPLUS_INCLUDE_PATH=/hpme/zhangxl/my/libtool/include:$CPLUS_INCLUDE_PATH
export LIBRARY_PATH=/home/zhangxl/my/libtool/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/home/zhangxl/my/libtool/lib:$LD_LIBRARY_PATH

我想也许 .bashrc 文件不正确。

最佳答案

确保安装了 libtool如果 autoconf 在您的系统上找不到 libtool,则可能会产生此错误消息。在我的例子中,错误看起来有点像这样:

autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
...
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

我能够通过使用 apt 安装 libtool 来解决这个问题。

sudo apt-get update
sudo apt-get install libtool

关于linux - 可能是未定义的宏 : AC_PROG_LIBTOOL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53636130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com