Build X-I:找不到命令,无法构建某种软件,什么';怎么了?

Build X-I:找不到命令,无法构建某种软件,什么';怎么了?,build,autotools,autoconf,automake,libtool,Build,Autotools,Autoconf,Automake,Libtool,错误消息如下所示: ./libtool: line 1129: X-I.: command not found ./libtool: line 1129: X-DLT_CONFIG_H=<config.h>: command not found ./libtool: line 1129: X-DLTDL: command not found ./libtool: line 1129: X-I.: command not found ./libtool: line 1129: X-I.

错误消息如下所示:

./libtool: line 1129: X-I.: command not found
./libtool: line 1129: X-DLT_CONFIG_H=<config.h>: command not found
./libtool: line 1129: X-DLTDL: command not found
./libtool: line 1129: X-I.: command not found
./libtool: line 1129: X-I.: command not found
./libtool: line 1129: X-Ilibltdl: command not found
./libtool: line 1129: X-I./libltdl: No such file or directory
./libtool: line 1129: X-I./libltdl: No such file or directory
./libtool: line 1129: X-g: command not found
./libtool: line 1129: X-O2: command not found
./libtool: line 1129: X-MT: command not found
./libtool: line 1129: Xdlopen.lo: command not found
./libtool: line 1129: X-MD: command not found
./libtool: line 1129: X-MP: command not found
./libtool: line 1129: X-MF: command not found
./libtool: line 1129: X.deps/dlopen.Tpo: No such file or directory
./libtool: line 1129: X-c: command not found
./libtool: line 1181: Xdlopen.lo: command not found
./libtool: line 1186: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [dlopen.lo] Error 1
make[2]: Leaving directory `/home/mirror/tmp/tmp/3/libltdl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mirror/tmp/tmp/3/libltdl'
make: *** [lib] Error 2
构建教程如下所示:


听起来像是在
configure
期间用于执行检查的Libtool宏版本与用于生成
Libtool
ltmain.sh
文件之间不匹配


我只需将
libtool
更新到最新版本,并手动运行
libtoolize-f
,以确保所有内容都是最新的。

最近我遇到了同样的问题

这是脚本libtool中的一个错误,它试图像执行程序一样执行参数(前缀为X),除非定义了变量$echo

要修复此问题,请在执行以下操作之前执行此操作:

export echo=echo
然后再试一次

在这里找到:我在这个线程中找到了解决方案:

export echo=echo