[英]How can I upgrade to Autoconf 2.6.2 or higher on Mac OS X 10.6?
我的环境是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
我通常不打扰在系统上安装任何autotools,而是安装在$ HOME中。 只需从http://ftp.gnu.org/gnu/autoconf/获取autoconf tarball,解压缩并运行:
./configure --prefix=$HOME
make
make install
确保$ HOME / bin在系统目录之前位于PATH中,或者从系统中卸载autoconf。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.