简体   繁体   English

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

[英]How can I upgrade to Autoconf 2.6.2 or higher on Mac OS X 10.6?

My environment is Mac OS X 10.6. 我的环境是Mac OS X 10.6。 I have installed Autoconfig using MacPorts: 我使用MacPorts安装了Autoconfig:

sudo port -v selfupdate
sudo port install autoconf

But the autoconf installed is 2.6.1. 但安装的autoconf是2.6.1。 My question is how can I upgrade it to 2.6.2? 我的问题是如何将其升级到2.6.2?

The program I am trying to compile need autoconf 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

I usually do not bother installing any of the autotools on the system, but install them in $HOME instead. 我通常不打扰在系统上安装任何autotools,而是安装在$ HOME中。 Just grab the autoconf tarball from http://ftp.gnu.org/gnu/autoconf/ , unpack it and run: 只需从http://ftp.gnu.org/gnu/autoconf/获取autoconf tarball,解压缩并运行:

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

Make sure $HOME/bin is in your PATH before the system dir, or uninstall autoconf from the system. 确保$ HOME / bin在系统目录之前位于PATH中,或者从系统中卸载autoconf。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM