Automake要求“Autoconf 2.65或更高”,但我已经安装了Autoconf 2.69

时间:2013-05-17 15:28:41

标签: autoconf automake

现在我正在尝试在我的Mac上构建Automake,到目前为止,一切都在游泳。我构建了Autoconf和m4而没有任何问题(与git pulls相反)。然后我进入Automake,这就是事情崩溃的地方:

    checking whether autoconf is installed... yes
    checking whether autoconf works... yes
    checking whether autoconf is recent enough... no
    configure: error: Autoconf 2.65 or better is required.

如果我构建并安装autoconf 2.68,问题仍然存在。在这一个上我是否缺少某种技巧?

1 个答案:

答案 0 :(得分:4)

make文件正在$PATH中检测到旧版Autoconf。在Sebastien的博客中查看this post,特别是告诉您在构建Automake之前将新的Autoconf bin目录添加到$PATH的部分。如果要遵循“标准”OSX文件夹结构约定,请在/usr/local中安装Autoconf。

请允许我无耻地复制Sebastien剧本的Daniel Farrelly version

export build=~/devtools # or wherever you'd like to build
mkdir -p $build

##
# Autoconf
# http://ftpmirror.gnu.org/autoconf

cd $build
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/local
make
sudo make install
export PATH=/usr/local/bin

##
# Automake
# http://ftpmirror.gnu.org/automake

cd $build
curl -OL http://ftpmirror.gnu.org/automake/automake-1.13.2.tar.gz
tar xzf automake-1.13.2.tar.gz
cd automake-1.13.2
./configure --prefix=/usr/local
make
sudo make install