2012-03-21 154 views
4

我的環境是Mac OS X 10.6。我已經使用MacPorts安裝了Autoconfig:如何在Mac OS X 10.6上升級到Autoconf 2.6.2或更高版本?

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 
+0

如果您從正確構建的tarball進行編譯,則不需要使用autoconf。 – 2012-03-22 19:20:43

回答

4

我通常不打擾安裝任何系統上的自動工具,但在$ HOME安裝它們來代替。剛剛從http://ftp.gnu.org/gnu/autoconf/搶autoconf的壓縮包,解壓並運行:

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

確保$ HOME/bin在PATH系統目錄之前,或從系統中卸載的autoconf。