[英]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.