【问题标题】:How can I upgrade to Autoconf 2.6.2 or higher on Mac OS X 10.6?如何在 Mac OS X 10.6 上升级到 Autoconf 2.6.2 或更高版本?
【发布时间】:2012-03-21 20:37:29
【问题描述】:

我的环境是 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

【问题讨论】:

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

标签: macos autoconf


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-14
    • 2011-02-04
    • 1970-01-01
    • 1970-01-01
    • 2011-02-01
    • 1970-01-01
    相关资源
    最近更新 更多