小编eea*_*ach的帖子

可能未定义的宏:AC_PROG_LIBTOOL

我想构建protobuf,所以我只是在目录中克隆包和cd。当我输入 ./autogen.sh 时,发生了一些错误。 当我输入 ./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
Run Code Online (Sandbox Code Playgroud)

有人说我应该安装 libtool,但我已经安装了 autoconf、automake、libtool 和 m4,但它们都是从源代码构建的,因为我无法获得 sudo 密码。 在此处输入图像描述 这是我的 .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
Run Code Online (Sandbox Code Playgroud)

我想可能 .bashrc 文件不正确,所以我想寻求帮助,非常感谢您的回答。

linux autotools libtool

8
推荐指数
3
解决办法
1万
查看次数

标签 统计

autotools ×1

libtool ×1

linux ×1