找不到 Mingw sh autogen.sh 执行



我正在尝试执行

./autogen.sh 

cppunit 文件夹中的脚本来自

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

但是在 Mingw shell(SH) 中,我收到下一个错误:

error: aclocal not found

本地 M4 脚本在

c:MinGWshare

目录。

如何解决该错误?

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

pacman -S msys/libtool
pacman -S msys/autoconf
pacman -S msys/automake-wrapper

在那之后,我能够执行 autogen.sh

它也发生在 ubuntu 上,也可以在 ubuntu 安装自动制作 libtool 中克服这一点

apt-get install automake libtool

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

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

Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/...

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

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

mount c:/mingw /mingw

脚本现在可以工作了。

这对我来说是:

pacman -S --needed --noconfirm autoconf automake libtool make

Aclocalautomake工具的一部分,而不是一个独立的包。从源代码安装以获取最新版本或使用 apt

sudo apt-get install automake

VERSION=1.15
    wget ftp://ftp.gnu.org/gnu/automake/automake-${VERSION}.tar.gz &> /dev/null
    if [ -f "automake-${VERSION}.tar.gz" ]; then
            tar -xzf automake-${VERSION}.tar.gz
            cd automake-${VERSION}/
            ./configure
            make && make install
            echo -e "e[1;39m[   e[1;32mOKe[39m   ] automake-${VERSION} installede[0;39m"
        else
            echo -e "e[1;39m[   e[31mErrore[39m   ] cannot fetch file from ftp://ftp.gnu.org/gnu/automake/ e[0;39m"
            exit 1
fi

从源安装

最新更新