现在我正尝试在我的 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,问题仍然存在。我在这方面缺少某种技巧吗?
最佳答案
make 文件在您的 $PATH
中检测到旧版本的 Autoconf。看看this post在 Sebastien 的博客中,特别是告诉您在构建 Automake 之前将新的 Autoconf bin 目录添加到 $PATH
的部分。如果您想遵循“标准”OSX 文件夹结构约定,请在 /usr/local
中安装 Autoconf。
请允许我无耻地复制 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
关于autoconf - Automake 要求 "Autoconf 2.65 or better"但我已经安装了 Autoconf 2.69,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16612791/