找不到用于 mingw sh autogen.sh 执行的 aclocal
aclocal not found for mingw sh autogen.sh execution
我正在尝试执行
./autogen.sh
来自
的 cppunit 文件夹中的脚本
http://www.freedesktop.org/wiki/Software/cppunit
但是在 mingw shell(sh) 中我得到下一个错误:
error: aclocal not found
aclocal m4 脚本在
c:\MinGW\share\
目录。
如何修复该错误?
我试过直接从 shell sh 运行 aclocal。
它打印了另一条错误消息:
Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/...
如题:Error while building Linphone for windows
所以我通过命令挂载/mingw:
mount c:/mingw /mingw
现在脚本可以运行了。
Aclocal
是 automake
工具的一部分,而不是一个独立的包。
从源安装以获得最新版本或使用 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;32mOK\e[39m ] automake-${VERSION} installed\e[0;39m"
else
echo -e "\e[1;39m[ \e[31mError\e[39m ] cannot fetch file from ftp://ftp.gnu.org/gnu/automake/ \e[0;39m"
exit 1
fi
从源安装
在编译 libmodbus 库时遇到了类似的问题(它使用相同的构建原理)。我在 MSYS shell:
中输入了以下命令
pacman -S msys/libtool
pacman -S msys/autoconf
pacman -S msys/automake-wrapper
之后我可以执行 autogen.sh
这对我有用:
pacman -S --needed --noconfirm autoconf automake libtool make
它也发生在 ubuntu 以及在 ubuntu install automake libtool
中克服这个问题
apt-get install automake libtool
我正在尝试执行
./autogen.sh
来自
的 cppunit 文件夹中的脚本http://www.freedesktop.org/wiki/Software/cppunit
但是在 mingw shell(sh) 中我得到下一个错误:
error: aclocal not found
aclocal m4 脚本在
c:\MinGW\share\
目录。
如何修复该错误?
我试过直接从 shell sh 运行 aclocal。
它打印了另一条错误消息:
Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/...
如题:Error while building Linphone for windows
所以我通过命令挂载/mingw:
mount c:/mingw /mingw
现在脚本可以运行了。
Aclocal
是 automake
工具的一部分,而不是一个独立的包。
从源安装以获得最新版本或使用 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;32mOK\e[39m ] automake-${VERSION} installed\e[0;39m"
else
echo -e "\e[1;39m[ \e[31mError\e[39m ] cannot fetch file from ftp://ftp.gnu.org/gnu/automake/ \e[0;39m"
exit 1
fi
从源安装
在编译 libmodbus 库时遇到了类似的问题(它使用相同的构建原理)。我在 MSYS shell:
中输入了以下命令pacman -S msys/libtool
pacman -S msys/autoconf
pacman -S msys/automake-wrapper
之后我可以执行 autogen.sh
这对我有用:
pacman -S --needed --noconfirm autoconf automake libtool make
它也发生在 ubuntu 以及在 ubuntu install automake libtool
中克服这个问题apt-get install automake libtool