如何在Mac OS X 10.6上升级到Autoconf 2.6.2或更高版本?

时间:2012-03-21 20:37:30

标签: macos autoconf

我的环境是Mac OS X 10.6。我已经使用MacPorts安装了Autoconfig:

sudo port -v selfupdate
sudo port install autoconf

但安装的autoconf是2.6.1。 我的问题是如何将其升级到2.6.2?

我正在尝试编译的程序需要autoconf 2.6.2

configure.ac:14: error: Autoconf version 2.62 or higher is required
/opt/local/share/aclocal-1.11/init.m4:110: AM_INIT_AUTOMAKE is expanded from...
configure.ac:14: the top level
autom4te: /Developer/usr/bin/gm4 failed with exit status: 63
aclocal-1.11: autom4te failed with exit status: 63
make[1]: *** [libmpeg2] Error 63

1 个答案:

答案 0 :(得分:4)

我通常不会在系统上安装任何自动工具,而是将它们安装在$ HOME中。只需从http://ftp.gnu.org/gnu/autoconf/抓取autoconf tarball,解压缩并运行:

./configure --prefix=$HOME
 make
 make install

确保$ HOME / bin在系统目录之前位于PATH中,或者从系统中卸载autoconf。

相关问题