我安裝了xcode4.2,因此,我無法通過自制軟件安裝gfortran。gfortran的自制安裝失敗xcode 4.2
這裏的錯誤:
calvin$ brew -v install gfortran
Homebrew 0.8
==> Downloading http://r.research.att.com/gfortran-lion-5666-3.pkg
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7.2) http://r.research.att.com /gfortran-lion-5666-3.pkg -o /Users/calvin/Library/Caches/Homebrew/gfortran-4.2.4-5666.3.pkg
######################################################################## 100.0%^[[B
/usr/bin/xar -xf /Users/calvin/Library/Caches/Homebrew/gfortran-4.2.4-5666.3.pkg
mv *.pkg/Payload Payload.gz
ls | grep -v Payload | xargs rm -r
/usr/bin/gcc
Error: Currently the gfortran compiler provided by this brew is only supported
for:
- XCode 3.1.4 on OS X 10.5.x
- XCode 3.2.2/3.2.3 -- 4.0 on OS X 10.6.x
- XCode 4.1 on OS X 10.7.x
The AppStore and Software Update can help upgrade your copy of XCode.
The latest version of XCode is also available from:
http://developer.apple.com/technologies/xcode.html
rmdir: /usr/local/Cellar/gfortran/4.2.4-5666.3 (empty)
Error: Nothing was installed to /usr/local/Cellar/gfortran/4.2.4-5666.3
我怎樣才能得到這個工作(使用的Xcode 4.2,降級我的Xcode 4.2是不是一個真正的好選擇)?
這是在Homebrew的[open issue](https://github.com/mxcl/homebrew/issues/8173)。有趣的是,他們使用二進制文件而不是自己編譯編譯器。 –
現在,上述GitHub問題8173已解決。剛剛在OSX10.7/XCode4.2.1 –
上成功運行'brew install gfortran',謝謝你的提示,Jason。 –