autoreconf 因“无法执行“libtoolize”而失败”

abk*_*kds 12 debian autoconf

我想了解 autotools,所以我刚开始在 YouTube 上观看一些教程。

我创建了一个名为的文件夹hello,然后创建了一个configure.ac文件:

AC_INIT([hello],[.01])
AC_OUTPUT 
Run Code Online (Sandbox Code Playgroud)

我保存了它然后跑了autoreconf -i。显然,这在第一次不起作用,因为它没有安装。然后我autoconf通过命令安装sudo apt-get install autoconf2.13

现在在此之后我再次运行autoreconf -i,但现在我收到如下所示的错误:

Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf2.50 line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf2.50 line 196.
Run Code Online (Sandbox Code Playgroud)

UVV*_*UVV 37

你应该做 sudo apt-get install build-essential libtool


小智 5

尝试这个..

sudo apt-get install automake autoconf libtool autoreconf -i

这对我有用。