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

Macos 如何在Mac OS X 10.6上升级到Autoconf 2.6.2或更高版本?,macos,autoconf,Macos,Autoconf,我的环境是MacOSX10.6。我已使用MacPorts安装自动配置: 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/i

我的环境是MacOSX10.6。我已使用MacPorts安装自动配置:

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

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

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

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

如果您是从正确构建的tarball编译,则不需要使用autoconf。