aclocal not found for mingw sh autogen.sh execution

Vya*_*lav 4 windows mingw

i'm trying to execute

./autogen.sh 
Run Code Online (Sandbox Code Playgroud)

script in cppunit folder from

http://www.freedesktop.org/wiki/Software/cppunit

but in a mingw shell(sh) i get next error:

error: aclocal not found
Run Code Online (Sandbox Code Playgroud)

aclocal m4 scripts are in

c:\MinGW\share\
Run Code Online (Sandbox Code Playgroud)

directory.

How to fix that error?

Iva*_* P. 10

编译 libmodbus 库时遇到了类似的问题(它使用相同的构建原理)。我在 MSYS shell 中输入了以下命令:

pacman -S msys/libtool

pacman -S msys/autoconf

pacman -S msys/automake-wrapper
Run Code Online (Sandbox Code Playgroud)

之后我就可以执行 autogen.sh


Man*_*Ali 10

它也发生在 ubuntu 上,并在 ubuntu install automake libtool 中克服这个问题

apt-get install automake libtool
Run Code Online (Sandbox Code Playgroud)


Vya*_*lav 2

我尝试直接从 shell sh 运行 aclocal 。

它打印了另一条错误消息:

Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/...
Run Code Online (Sandbox Code Playgroud)

正如问题:为 Windows 构建 Linphone 时出错

所以我通过命令安装/mingw:

mount c:/mingw /mingw
Run Code Online (Sandbox Code Playgroud)

并且脚本现在可以运行了。