2013-05-17 274 views
3

現在我正試圖在我的Mac上構建Automake,到目前爲止,所有事情都一直在順風順水。我建立了Autoconf和m4,沒有發現任何問題(與git pulls相反)。然後我去Automake,這就是事情崩潰的地方:Automake要求「Autoconf 2.65或更好」,但我已經安裝了Autoconf 2.69

checking whether autoconf is installed... yes 
    checking whether autoconf works... yes 
    checking whether autoconf is recent enough... no 
    configure: error: Autoconf 2.65 or better is required. 

如果我構建並安裝autoconf 2.68,問題依然存在。有沒有我在這一個失蹤的一些伎倆?

+1

哦,順便說一下,歡迎使用stackoverflow!請務必檢查[Ask Different](http://apple.stackexchange.com/about)和[Super User](http://superuser.com/about)。 –

回答

4

make文件在您的$PATH中檢測到Autoconf的舊版本。在Sebastien的博客中看看this post,特別是在構建Automake之前,告訴您將新Autoconf bin目錄添加到$PATH的部分。如果您想遵循「標準」OSX文件夾結構慣例,請在/usr/local中安裝Autoconf。

允許我無恥地複製塞巴斯蒂安劇本的Daniel Farrelly version

export build=~/devtools # or wherever you'd like to build 
mkdir -p $build 

## 
# Autoconf 
# http://ftpmirror.gnu.org/autoconf 

cd $build 
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz 
tar xzf autoconf-2.69.tar.gz 
cd autoconf-2.69 
./configure --prefix=/usr/local 
make 
sudo make install 
export PATH=/usr/local/bin 

## 
# Automake 
# http://ftpmirror.gnu.org/automake 

cd $build 
curl -OL http://ftpmirror.gnu.org/automake/automake-1.13.2.tar.gz 
tar xzf automake-1.13.2.tar.gz 
cd automake-1.13.2 
./configure --prefix=/usr/local 
make 
sudo make install 
相關問題