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

ivk*_*nko 3 automake autoconf

现在我正在尝试在我的 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.
Run Code Online (Sandbox Code Playgroud)

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

Ant*_*oly 5

The make file is detecting an older version of Autoconf in your $PATH. Take a look at this post in Sebastien's blog, especially the part that tells you to add your new Autoconf bin dir to the $PATH before building Automake. If you want to follow "standard" OSX folder structure convention, install Autoconf in /usr/local.

Allow me to shamelessly copy Daniel Farrelly version of Sebastien's script.

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
Run Code Online (Sandbox Code Playgroud)